Skip to content

validation: restore non-empty mempool check before snapshot activation#29

Open
w0xlt wants to merge 11 commits into
sedited:mempoolout_rebasefrom
w0xlt:restore-assumeutxo-mempool-guard
Open

validation: restore non-empty mempool check before snapshot activation#29
w0xlt wants to merge 11 commits into
sedited:mempoolout_rebasefrom
w0xlt:restore-assumeutxo-mempool-guard

Conversation

@w0xlt

@w0xlt w0xlt commented Jun 8, 2026

Copy link
Copy Markdown

This PR restores the existing master behavior that rejects snapshot activation when the mempool is non-empty.

The guard was dropped when validation stopped accessing CTxMemPool directly and started using kernel::Mempool. This adds a small empty() query to the interface so ActivateSnapshot() can keep the same behavior without reintroducing a CTxMemPool dependency.

Also adds a functional regression test in feature_assumeutxo.py.

@sedited sedited force-pushed the mempoolout_rebase branch from 222e2fe to 40b243d Compare June 8, 2026 10:47
@sedited

sedited commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Thank you for checking this out! Do you want to submit the functional test change upstream? Seems like that ought be covered by a test.

@sedited sedited force-pushed the mempoolout_rebase branch from 40b243d to 8be8bf2 Compare June 8, 2026 11:22
@w0xlt

w0xlt commented Jun 8, 2026

Copy link
Copy Markdown
Author

Thanks. This specific test already exists on master (introduced in PR 29394) but it was removed in e6a0a84#diff-8eaa6b77b4e4f242deb67950425cb6b6b7de5370c56a1e8fa7e3a12e95df0a9d.

@sedited

sedited commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Heh, completely forgot that I did that :P

@sedited sedited force-pushed the mempoolout_rebase branch from 8be8bf2 to 02db4cb Compare June 9, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants