Merge pull request #15 from oipwg/fix_coinbase_evaluation
Add FLO block halving limit (34 halvings)
This commit is contained in:
commit
973383209d
@ -339,7 +339,8 @@ exports.getReward = function getReward(height, interval) {
|
||||
// BIP 42 (well, our own version of it,
|
||||
// since we can only handle 32 bit shifts).
|
||||
// https://github.com/bitcoin/bips/blob/master/bip-0042.mediawiki
|
||||
if (halvings >= 33)
|
||||
// FLO can safely handle 34 (instead of 33) halvings
|
||||
if (halvings >= 34)
|
||||
return 0;
|
||||
|
||||
// We need to shift right by `halvings`,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user