diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-07-19 20:30:18 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-07-29 12:29:51 +0200 |
commit | fac674db200e6b2d5b32069335fb24e713d7b69f (patch) | |
tree | c34e2b54b07a899b5181cd69f846135051109b53 /src/validation.cpp | |
parent | faec851b6eb7e65e28cdcae50d6dc86fafa0f91c (diff) |
Pass mempool pointer to UnloadBlockIndex
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 545aa0f2d3..462d8d961b 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4587,13 +4587,13 @@ void CChainState::UnloadBlockIndex() { // May NOT be used after any connections are up as much // of the peer-processing logic assumes a consistent // block index state -void UnloadBlockIndex() +void UnloadBlockIndex(CTxMemPool* mempool) { LOCK(cs_main); g_chainman.Unload(); pindexBestInvalid = nullptr; pindexBestHeader = nullptr; - mempool.clear(); + if (mempool) mempool->clear(); vinfoBlockFile.clear(); nLastBlockFile = 0; setDirtyBlockIndex.clear(); |