Skip to content

Make the indexing update atomic#55

Merged
RCasatta merged 1 commit intomasterfrom
atomic
Dec 2, 2025
Merged

Make the indexing update atomic#55
RCasatta merged 1 commit intomasterfrom
atomic

Conversation

@RCasatta
Copy link
Owner

The goal of this change is having a single write batch to update the db after indexing a block.

Write batch in rocksdb are atomic, so this should solve the issue of panicking cause a previous UTXO is not found due to the fact that the process interrupts in the middle of an update (thus having the hash in the HASHES_CF like the block is indexed but without the relative UTXOs)

@LeoComandini
Copy link
Contributor

utACK cbcfbc6, code review, haven't spot anything that seems incorrect

@valerio-vaccaro
Copy link

utack cbcfbc6

@RCasatta RCasatta merged commit cbcfbc6 into master Dec 2, 2025
3 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.

3 participants