Skip to content

Extend UTXO cache with per-block pending state#11

Merged
Hrom131 merged 2 commits intomainfrom
feat/cache-improvement
Mar 19, 2026
Merged

Extend UTXO cache with per-block pending state#11
Hrom131 merged 2 commits intomainfrom
feat/cache-improvement

Conversation

@zahorodnyi
Copy link
Collaborator

Add a per-block auxiliary cache that stages UTXO updates during block processing and applies them to the main cache only after successful block completion, preventing database/cache inconsistencies when block processing fails

resolve: #9

@zahorodnyi zahorodnyi self-assigned this Mar 17, 2026
@zahorodnyi zahorodnyi force-pushed the feat/cache-improvement branch from fe359d8 to 61954a1 Compare March 18, 2026 19:22
Copy link
Collaborator

@Hrom131 Hrom131 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Hrom131 Hrom131 merged commit a1e6d97 into main Mar 19, 2026
3 checks passed
@Hrom131 Hrom131 deleted the feat/cache-improvement branch March 19, 2026 14:19
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.

Invalid UTXOs cache in indexer

2 participants