We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3714692 commit 33c48c1Copy full SHA for 33c48c1
src/validation.cpp
@@ -5681,7 +5681,8 @@ util::Result<void> ChainstateManager::ActivateSnapshot(
5681
return util::Error{strprintf(_("The base block header (%s) is part of an invalid chain."), base_blockhash.ToString())};
5682
}
5683
5684
- if (Assert(m_active_chainstate->GetMempool())->size() > 0) {
+ auto mempool{m_active_chainstate->GetMempool()};
5685
+ if (mempool && mempool->size() > 0) {
5686
return util::Error{_("Can't activate a snapshot when mempool not empty.")};
5687
5688
0 commit comments