Add debug startup parameter -fastprune for more effective pruning tests

This commit is contained in:
Jonas Schnelli
2020-12-10 11:39:37 +01:00
parent 5e112269c3
commit c286a22f7b
3 changed files with 4 additions and 3 deletions

View File

@@ -406,7 +406,7 @@ public:
pchMessageStart[2] = 0xb5;
pchMessageStart[3] = 0xda;
nDefaultPort = 18444;
nPruneAfterHeight = 1000;
nPruneAfterHeight = gArgs.GetBoolArg("-fastprune", false) ? 100 : 1000;
m_assumed_blockchain_size = 0;
m_assumed_chain_state_size = 0;