diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-01-16 17:23:18 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-01-16 17:31:32 +0100 |
commit | faf7b4f1fc35f1488567e0e4a57ecb348596b992 (patch) | |
tree | 9392926559a340b437ef3ecf342b56a59c28b321 /src/index | |
parent | fae71fe27ec021583aaeac09aa924522bb63db05 (diff) |
Add BlockManager::IsPruneMode()
Diffstat (limited to 'src/index')
-rw-r--r-- | src/index/base.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/index/base.cpp b/src/index/base.cpp index a8b8cbe8a9..1d5c0dbe24 100644 --- a/src/index/base.cpp +++ b/src/index/base.cpp @@ -415,8 +415,9 @@ IndexSummary BaseIndex::GetSummary() const return summary; } -void BaseIndex::SetBestBlockIndex(const CBlockIndex* block) { - assert(!node::fPruneMode || AllowPrune()); +void BaseIndex::SetBestBlockIndex(const CBlockIndex* block) +{ + assert(!m_chainstate->m_blockman.IsPruneMode() || AllowPrune()); if (AllowPrune() && block) { node::PruneLockInfo prune_lock; |