Refactor: Remove m_is_test_chain

pull/28379/head
Tim Neubauer 1 year ago
parent a4e0bcb6c9
commit 27b4084e16

@ -151,7 +151,6 @@ public:
vFixedSeeds = std::vector<uint8_t>(std::begin(chainparams_seed_main), std::end(chainparams_seed_main));
fDefaultConsistencyChecks = false;
m_is_test_chain = false;
m_is_mockable_chain = false;
checkpointData = {
@ -258,7 +257,6 @@ public:
vFixedSeeds = std::vector<uint8_t>(std::begin(chainparams_seed_test), std::end(chainparams_seed_test));
fDefaultConsistencyChecks = false;
m_is_test_chain = true;
m_is_mockable_chain = false;
checkpointData = {
@ -380,7 +378,6 @@ public:
bech32_hrp = "tb";
fDefaultConsistencyChecks = false;
m_is_test_chain = true;
m_is_mockable_chain = false;
}
};
@ -471,7 +468,6 @@ public:
vSeeds.emplace_back("dummySeed.invalid.");
fDefaultConsistencyChecks = true;
m_is_test_chain = true;
m_is_mockable_chain = true;
checkpointData = {

@ -103,7 +103,7 @@ public:
/** Default value for -checkmempool and -checkblockindex argument */
bool DefaultConsistencyChecks() const { return fDefaultConsistencyChecks; }
/** If this chain is exclusively used for testing */
bool IsTestChain() const { return m_is_test_chain; }
bool IsTestChain() const { return m_chain_type != ChainType::MAIN; }
/** If this chain allows time to be mocked */
bool IsMockableChain() const { return m_is_mockable_chain; }
uint64_t PruneAfterHeight() const { return nPruneAfterHeight; }
@ -177,7 +177,6 @@ protected:
CBlock genesis;
std::vector<uint8_t> vFixedSeeds;
bool fDefaultConsistencyChecks;
bool m_is_test_chain;
bool m_is_mockable_chain;
CCheckpointData checkpointData;
MapAssumeutxo m_assumeutxo_data;

Loading…
Cancel
Save