Add FLO block halving limit (34 halvings)

This commit is contained in:
metacoin 2020-02-19 08:56:27 -05:00
parent 8668e14066
commit af2f9bbae7

View File

@ -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`,