Founders reward: changed index computation, added new test and some refactoring.

This commit is contained in:
Simon
2016-09-22 16:38:44 -07:00
parent db0f931570
commit 3b30d8361a
5 changed files with 66 additions and 35 deletions

View File

@@ -342,7 +342,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
txNew.vout[0].nValue -= vFoundersReward;
// And give it to the founders
txNew.vout.push_back(CTxOut(vFoundersReward, chainparams.GetFoundersRewardScript(nHeight)));
txNew.vout.push_back(CTxOut(vFoundersReward, chainparams.GetFoundersRewardScriptAtHeight(nHeight)));
}
// Add fees