Add FLO block halving limit (34 halvings)
This commit is contained in:
parent
8668e14066
commit
af2f9bbae7
@ -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