mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-23 15:22:46 +02:00
[test] add chainparams property to indicate chain allows time mocking
This commit is contained in:
parent
1cd43e83c6
commit
930d837542
@ -135,6 +135,7 @@ public:
|
|||||||
fDefaultConsistencyChecks = false;
|
fDefaultConsistencyChecks = false;
|
||||||
fRequireStandard = true;
|
fRequireStandard = true;
|
||||||
m_is_test_chain = false;
|
m_is_test_chain = false;
|
||||||
|
m_is_mockable_chain = false;
|
||||||
|
|
||||||
checkpointData = {
|
checkpointData = {
|
||||||
{
|
{
|
||||||
@ -231,7 +232,7 @@ public:
|
|||||||
fDefaultConsistencyChecks = false;
|
fDefaultConsistencyChecks = false;
|
||||||
fRequireStandard = false;
|
fRequireStandard = false;
|
||||||
m_is_test_chain = true;
|
m_is_test_chain = true;
|
||||||
|
m_is_mockable_chain = false;
|
||||||
|
|
||||||
checkpointData = {
|
checkpointData = {
|
||||||
{
|
{
|
||||||
@ -303,6 +304,7 @@ public:
|
|||||||
fDefaultConsistencyChecks = true;
|
fDefaultConsistencyChecks = true;
|
||||||
fRequireStandard = true;
|
fRequireStandard = true;
|
||||||
m_is_test_chain = true;
|
m_is_test_chain = true;
|
||||||
|
m_is_mockable_chain = true;
|
||||||
|
|
||||||
checkpointData = {
|
checkpointData = {
|
||||||
{
|
{
|
||||||
|
@ -68,6 +68,8 @@ public:
|
|||||||
bool RequireStandard() const { return fRequireStandard; }
|
bool RequireStandard() const { return fRequireStandard; }
|
||||||
/** If this chain is exclusively used for testing */
|
/** If this chain is exclusively used for testing */
|
||||||
bool IsTestChain() const { return m_is_test_chain; }
|
bool IsTestChain() const { return m_is_test_chain; }
|
||||||
|
/** If this chain allows time to be mocked */
|
||||||
|
bool IsMockableChain() const { return m_is_mockable_chain; }
|
||||||
uint64_t PruneAfterHeight() const { return nPruneAfterHeight; }
|
uint64_t PruneAfterHeight() const { return nPruneAfterHeight; }
|
||||||
/** Minimum free space (in GB) needed for data directory */
|
/** Minimum free space (in GB) needed for data directory */
|
||||||
uint64_t AssumedBlockchainSize() const { return m_assumed_blockchain_size; }
|
uint64_t AssumedBlockchainSize() const { return m_assumed_blockchain_size; }
|
||||||
@ -102,6 +104,7 @@ protected:
|
|||||||
bool fDefaultConsistencyChecks;
|
bool fDefaultConsistencyChecks;
|
||||||
bool fRequireStandard;
|
bool fRequireStandard;
|
||||||
bool m_is_test_chain;
|
bool m_is_test_chain;
|
||||||
|
bool m_is_mockable_chain;
|
||||||
CCheckpointData checkpointData;
|
CCheckpointData checkpointData;
|
||||||
ChainTxData chainTxData;
|
ChainTxData chainTxData;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user