aboutsummaryrefslogtreecommitdiff
path: root/src/test/util
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-08-25 22:29:31 -0400
committerCarl Dong <contact@carldong.me>2021-02-22 11:48:39 -0500
commit4927c9e6991b09a36a41aab93a0e05332d899611 (patch)
tree197ecaa52c0a437969aab1c1ea75201aeaf7eeb2 /src/test/util
parent9da106be4db692fa5db7b4de79f9cf7bfef37075 (diff)
validation: Remove global ::LoadGenesisBlock
Diffstat (limited to 'src/test/util')
-rw-r--r--src/test/util/setup_common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp
index 1ffe435531..46b28190d3 100644
--- a/src/test/util/setup_common.cpp
+++ b/src/test/util/setup_common.cpp
@@ -179,7 +179,7 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector<const
assert(!::ChainstateActive().CanFlushToDisk());
::ChainstateActive().InitCoinsCache(1 << 23);
assert(::ChainstateActive().CanFlushToDisk());
- if (!LoadGenesisBlock(chainparams)) {
+ if (!::ChainstateActive().LoadGenesisBlock(chainparams)) {
throw std::runtime_error("LoadGenesisBlock failed.");
}