mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Merge 0cac45755e into merged_master (Bitcoin PR bitcoin/bitcoin#30320)
This commit is contained in:
commit
4e1c979f2e
2 changed files with 33 additions and 3 deletions
|
|
@ -6276,6 +6276,10 @@ util::Result<void> ChainstateManager::ActivateSnapshot(
|
|||
return util::Error{strprintf(Untranslated("The base block header (%s) is part of an invalid chain"), base_blockhash.ToString())};
|
||||
}
|
||||
|
||||
if (!m_best_header || m_best_header->GetAncestor(base_blockheight) != snapshot_start_block) {
|
||||
return util::Error{_("A forked headers-chain with more work than the chain with the snapshot base block header exists. Please proceed to sync without AssumeUtxo.")};
|
||||
}
|
||||
|
||||
auto mempool{m_active_chainstate->GetMempool()};
|
||||
if (mempool && mempool->size() > 0) {
|
||||
return util::Error{Untranslated("Can't activate a snapshot when mempool not empty")};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue