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

Consensus: fix history sync while processing received BatchSetInfo #3231

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

Eligioo
Copy link
Member

@Eligioo Eligioo commented Jan 9, 2025

What's in this pull request?

Determining the number of known transactions while processing received BatchSetInfos, could result into crossing an epoch boundary. This would result into skipping the entire BatchSetInfo for the current epoch the node is in and prevent it from downloading new history chunks.

Fixes #3206.

Pull request checklist

  • All tests pass. The project builds and runs.
  • I have resolved any merge conflicts.
  • I have resolved all clippy and rustfmt warnings.

@Eligioo Eligioo requested review from jsdanielh and styppo January 9, 2025 08:50
@Eligioo Eligioo force-pushed the stefan/history-sync-fix branch from 92b52c3 to 315d58a Compare January 10, 2025 11:10
Copy link
Member

@jsdanielh jsdanielh left a comment

Choose a reason for hiding this comment

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

LGTM

@jsdanielh jsdanielh force-pushed the stefan/history-sync-fix branch from 315d58a to 7c82820 Compare January 10, 2025 15:40
@jsdanielh jsdanielh merged commit 7c82820 into albatross Jan 10, 2025
8 checks passed
@jsdanielh jsdanielh deleted the stefan/history-sync-fix branch January 10, 2025 17:59
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.

History node fails to catch up
3 participants