Merge pull request #15 from oipwg/fix_coinbase_evaluation

Add FLO block halving limit (34 halvings)
This commit is contained in:
Sky Young 2020-02-20 09:39:38 -08:00 committed by GitHub
commit 973383209d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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