Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db: BodySnapshotFreezer use sequential txn_id without gaps #2215

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

battlmonstr
Copy link
Contributor

Original mdbx txn_id might have gaps due to chain reorgs. When moving the data to snapshots we remove potential gaps in BlockBodyForStorage txn_id. This makes snapshot files identical across nodes because different nodes might encounter different chain reorgs.

Note: the sequential numbering is called "TxNum" in erigon.

Original mdbx txn_id might have gaps due to chain reorgs.
When moving the data to snapshots we remove potential gaps in BlockBodyForStorage txn_id.
This makes snapshot files identical across nodes
because different nodes might encounter different chain reorgs.
Note: the sequential numbering is called "TxNum" in erigon.
@battlmonstr battlmonstr added the snapshots Framework for BitTorrent-based snapshots label Aug 8, 2024
@battlmonstr battlmonstr requested a review from canepat August 8, 2024 14:07
@canepat canepat merged commit 112ced3 into master Aug 10, 2024
4 checks passed
@canepat canepat deleted the pr/body_txnum branch August 10, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snapshots Framework for BitTorrent-based snapshots
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants