Page MenuHomePhabricator

refuse to activate a UTXO snapshot if mempool not empty
ClosedPublic

Authored by PiRK on Fri, Apr 4, 14:04.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC960dac9a7937: refuse to activate a UTXO snapshot if mempool not empty
Summary

This ensures that we avoid any unexpected conditions inherent in
transferring non-empty mempools across chainstates.

Note that this should never happen in practice given that snapshot
activation will not occur outside of IBD, based upon the height checks
in loadtxoutset.

This is a partial backport of core#27596
https://github.com/bitcoin/bitcoin/pull/27596/commits/bb0585779472962f40d9cdd9c6532132850d371c

Depends on D17897

Test Plan

ninja all check-all on my dev branch and IBD with assumeutxo

The dev branch has the corresponding functional test from core#29394 (will be added after we backport the loadtxoutset RPC)

Event Timeline

PiRK requested review of this revision.Fri, Apr 4, 14:04
PiRK edited the test plan for this revision. (Show Details)

actually we do have a test. Edit the test plan

This revision is now accepted and ready to land.Mon, Apr 7, 10:17