From 699682304f8f81035fed0c8644a364b7b1b25912 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Thu, 23 Apr 2015 18:30:55 -0400 Subject: checkpoints: make checkpoints a member of CChainParams This drops the virtual call and simplifies the logic --- src/chainparams.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/chainparams.h') 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& DNSSeeds() const { return vSeeds; } const std::vector& Base58Prefix(Base58Type type) const { return base58Prefixes[type]; } const std::vector& 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; }; /** -- cgit v1.2.3