Skip to content

fast invalidateblock#187

Draft
l0rinc wants to merge 2 commits into
masterfrom
l0rinc/fast-invalidateblock
Draft

fast invalidateblock#187
l0rinc wants to merge 2 commits into
masterfrom
l0rinc/fast-invalidateblock

Conversation

@l0rinc
Copy link
Copy Markdown
Owner

@l0rinc l0rinc commented Jun 6, 2026

No description provided.

l0rinc added 2 commits June 6, 2026 23:04
Before changing the disconnect loop, cover a rollback range containing blocks that spend mature coinbase outputs.

The test records the UTXO set hash before the range, invalidates the first block in the range, and checks that the active chain returns to the recorded hash.
Disconnect the active-chain range with one CCoinsViewCache when invalidateblock rewinds the chain.

The RPC is a local manual invalidation tool, so clear the mempool once and rebuild block index candidates after marking the disconnected range invalid.

This avoids per-block UpdateTip, FlushStateToDisk, candidate maintenance, and validation callbacks while keeping the final tip notification in place.
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.

1 participant