Founders reward: changed index computation, added new test and some refactoring.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user