Skip to content

blockchain: publish connected state before index flush - #436

Merged
kcalvinalvin merged 1 commit into
utreexo:mainfrom
kcalvinalvin:2026-09-07-fix-index-flush
Sep 7, 2026
Merged

kcalvinalvin merged 1 commit into
utreexo:mainfrom
kcalvinalvin:2026-09-07-fix-index-flush

Conversation

@kcalvinalvin

Copy link
Copy Markdown
Contributor

An index flush can fail after the best-chain transaction commits. Publish the chain tip and snapshot and deliver NTBlockConnected before flushing indexes so the committed block remains visible on failure.

Return the original flush error to the caller. Test state publication, notification delivery, and error propagation for index flush failures and database corruption.

An index flush can fail after the best-chain transaction commits.
Publish the chain tip and snapshot and deliver NTBlockConnected before
flushing indexes so the committed block remains visible on failure.

Return the original flush error to the caller. Test state publication,
notification delivery, and error propagation for index flush failures
and database corruption.
@kcalvinalvin
kcalvinalvin merged commit 3063012 into utreexo:main Sep 7, 2026
2 checks passed
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