aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2015-04-23 18:30:55 -0400
committerCory Fields <cory-nospam-@coryfields.com>2015-04-30 23:14:48 -0400
commit699682304f8f81035fed0c8644a364b7b1b25912 (patch)
tree63b835f7baab2519607c6d818e78aca27470b7f4 /src/chainparams.h
parent9f13a10548bf77fb785a9c116234258275de6c04 (diff)
checkpoints: make checkpoints a member of CChainParams
This drops the virtual call and simplifies the logic
Diffstat (limited to 'src/chainparams.h')
-rw-r--r--src/chainparams.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chainparams.h b/src/chainparams.h
index bf76eb110a..590f3e137e 100644
--- a/src/chainparams.h
+++ b/src/chainparams.h
@@ -74,7 +74,7 @@ public:
const std::vector<CDNSSeedData>& DNSSeeds() const { return vSeeds; }
const std::vector<unsigned char>& Base58Prefix(Base58Type type) const { return base58Prefixes[type]; }
const std::vector<SeedSpec6>& FixedSeeds() const { return vFixedSeeds; }
- virtual const Checkpoints::CCheckpointData& Checkpoints() const = 0;
+ const Checkpoints::CCheckpointData& Checkpoints() const { return checkpointData; }
protected:
CChainParams() {}
@@ -96,6 +96,7 @@ protected:
bool fRequireStandard;
bool fMineBlocksOnDemand;
bool fTestnetToBeDeprecatedFieldRPC;
+ Checkpoints::CCheckpointData checkpointData;
};
/**