BTCPrivate / BitcoinPrivate-legacy

Bitcoin Private is a Bitcoin and Zclassic fork which uses ZK-SNARK technology for privacy and fungibility.
Other
285 stars 132 forks source link

Chainparams.cpp needs updating for clarity of halving strategy #212

Open bigdaveakers opened 5 years ago

bigdaveakers commented 5 years ago

BTCP halving strategy is currently 210,000 blocks but the code is not clear and still suggests that it is 840,000.

There is a bit shift that reduces this to 210,000 but commentary is not clear. The rebase code appears to address this by setting nSubsidyHalvingInterval directly to 210,000

mattpass commented 5 years ago

This is the code mentioned above: https://github.com/BTCPrivate/BitcoinPrivate/blob/6c8ed84c5185fa522b57e08d1494bab2020da39a/src/main.cpp#L1440

Always a good idea to point code out with the URL and line number(s) where possible 😀

bigdaveakers commented 5 years ago

Noted, although I think that the issue will be superseded by any change that drops out of current discussions around mining. Never the less the clarity issue will remain unless something is done.