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

@@ -78,8 +78,9 @@ public:
const std::vector<SeedSpec6>& FixedSeeds() const { return vFixedSeeds; }
const Checkpoints::CCheckpointData& Checkpoints() const { return checkpointData; }
/** Return the founder's reward address and script for a given block height */
std::string GetFoundersRewardAddress(int height) const;
CScript GetFoundersRewardScript(int height) const;
std::string GetFoundersRewardAddressAtHeight(int height) const;
CScript GetFoundersRewardScriptAtHeight(int height) const;
std::string GetFoundersRewardAddressAtIndex(int i) const;
protected:
CChainParams() {}