mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
Refactor: Remove m_is_test_chain
This commit is contained in:
parent
a4e0bcb6c9
commit
27b4084e16
2 changed files with 1 additions and 6 deletions
|
@ -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…
Reference in a new issue