diff options
| author | MarcoFalke <[email protected]> | 2020-07-19 09:07:54 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-09-05 16:24:08 +0200 |
| commit | eeee1104d78eb59a582ee1709ff4ac2c33ee1190 (patch) | |
| tree | 254a4c983b57d69a7f2bcec663d5b5120ef79aad /src/validation.cpp | |
| parent | Merge #19848: Remove mempool global from interfaces (diff) | |
| download | discoin-eeee1104d78eb59a582ee1709ff4ac2c33ee1190.tar.xz discoin-eeee1104d78eb59a582ee1709ff4ac2c33ee1190.zip | |
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.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 58af8744d..684cfc807 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); |