Skip to content

fix: build_current_commitment_snapshot_from_index uses block tree start#1022

Merged
JesseTheRobot merged 3 commits into
masterfrom
fix/block-tree-restore-start
Nov 23, 2025
Merged

fix: build_current_commitment_snapshot_from_index uses block tree start#1022
JesseTheRobot merged 3 commits into
masterfrom
fix/block-tree-restore-start

Conversation

@JesseTheRobot

@JesseTheRobot JesseTheRobot commented Nov 23, 2025

Copy link
Copy Markdown
Member

previously, build_current_commitment_snapshot_from_index would use the latest block index to inform itself of the latest epoch block. however, the block tree depth is normally before the latest block index entry, so this logic could skip out epoch blocks, which would cause the node to panic without recovery.

Describe the changes
A clear and concise description of what the bug fix, feature, or improvement is.

Related Issue(s)
Please link to the issue(s) that will be closed with this PR.

Checklist

  • Tests have been added/updated for the changes.
  • Documentation has been updated for the changes (if applicable).
  • The code follows Rust's style guidelines.

Additional Context
Add any other context about the pull request here.

previously, build_current_commitment_snapshot_from_index would use the latest block index to inform itself of the latest epoch block. however, the block tree depth is normally before the latest block index entry, so this logic would skip out blocks.
@JesseTheRobot JesseTheRobot merged commit 8687f61 into master Nov 23, 2025
15 of 17 checks passed
@JesseTheRobot JesseTheRobot deleted the fix/block-tree-restore-start branch November 23, 2025 10:55
JesseTheRobot added a commit that referenced this pull request Nov 24, 2025
…rt (#1022)

* fix: build_current_commitment_snapshot_from_index uses block tree start
previously, build_current_commitment_snapshot_from_index would use the latest block index to inform itself of the latest epoch block. however, the block tree depth is normally before the latest block index entry, so this logic would skip out blocks.

* chore: fix formatting

* feat: improve error observability
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