diff options
author | James O'Beirne <james.obeirne@gmail.com> | 2019-12-12 14:11:03 -0500 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2020-03-17 14:03:40 -0400 |
commit | 2b081c4568e8019886fdb0f2a57babc73d7487f7 (patch) | |
tree | 0ed3d53fda9453067ca1d0526ae5a60da9bb9e00 /src/test/util/setup_common.cpp | |
parent | 4ae29f5f0c5117032debb722d7049664fdceeae8 (diff) | |
download | bitcoin-2b081c4568e8019886fdb0f2a57babc73d7487f7.tar.xz |
test: add basic tests for ChainstateManager
Feedback incorporated from Russell Yanofsky.
Co-authored-by: MarcoFalke <falke.marco@gmail.com>
Diffstat (limited to 'src/test/util/setup_common.cpp')
-rw-r--r-- | src/test/util/setup_common.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index dacdce0acb..c77f59e050 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -111,6 +111,7 @@ TestingSetup::TestingSetup(const std::string& chainName) : BasicTestingSetup(cha GetMainSignals().RegisterBackgroundSignalScheduler(*g_rpc_node->scheduler); pblocktree.reset(new CBlockTreeDB(1 << 20, true)); + g_chainman.InitializeChainstate(); ::ChainstateActive().InitCoinsDB( /* cache_size_bytes */ 1 << 23, /* in_memory */ true, /* should_wipe */ false); |