diff options
author | Carl Dong <contact@carldong.me> | 2020-08-25 22:29:31 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-02-22 11:48:39 -0500 |
commit | 4927c9e6991b09a36a41aab93a0e05332d899611 (patch) | |
tree | 197ecaa52c0a437969aab1c1ea75201aeaf7eeb2 /src/init.cpp | |
parent | 9da106be4db692fa5db7b4de79f9cf7bfef37075 (diff) |
validation: Remove global ::LoadGenesisBlock
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index befba2eb2d..ea222f393e 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -717,7 +717,7 @@ static void ThreadImport(ChainstateManager& chainman, std::vector<fs::path> vImp fReindex = false; LogPrintf("Reindexing finished\n"); // To avoid ending up in a situation without genesis block, re-try initializing (no-op if reindexing worked): - LoadGenesisBlock(chainparams); + ::ChainstateActive().LoadGenesisBlock(chainparams); } // -loadblock= @@ -1630,7 +1630,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockA // If we're not mid-reindex (based on disk + args), add a genesis block on disk // (otherwise we use the one already on disk). // This is called again in ThreadImport after the reindex completes. - if (!fReindex && !LoadGenesisBlock(chainparams)) { + if (!fReindex && !::ChainstateActive().LoadGenesisBlock(chainparams)) { strLoadError = _("Error initializing block database"); break; } |