aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-07-19 09:07:54 +0200
committerMarcoFalke <falke.marco@gmail.com>2020-09-05 16:24:08 +0200
commiteeee1104d78eb59a582ee1709ff4ac2c33ee1190 (patch)
tree254a4c983b57d69a7f2bcec663d5b5120ef79aad /src/validation.cpp
parent3ba25e3bdde3464eed5d2743d68546e48b005544 (diff)
Remove mempool global from init
Can be reviewed with the git diff options --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space --ignore-all-space
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 58af8744d9..684cfc807a 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -4227,6 +4227,14 @@ bool static LoadBlockIndexDB(ChainstateManager& chainman, const CChainParams& ch
return true;
}
+void CChainState::LoadMempool(const ArgsManager& args)
+{
+ if (args.GetArg("-persistmempool", DEFAULT_PERSIST_MEMPOOL)) {
+ ::LoadMempool(m_mempool);
+ }
+ m_mempool.SetIsLoaded(!ShutdownRequested());
+}
+
bool CChainState::LoadChainTip(const CChainParams& chainparams)
{
AssertLockHeld(cs_main);