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

[master] Fix corner case : handle receving of stale txblocks #2492

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

sandipbhoir
Copy link
Contributor

Description

This PR handles the corner case where it is lagging in previous epoch before starting RejoinAs*** -> StartSyncronization.

Before fix: Node receives txblock from latest ds epoch however misses the tailend txepoch from previous ds epoch. This is because upperseeds only sends txblocks from latest dsepoch.

After fix: It identifies the broken txblock chain and rejoin instead.

Backward Compatibility

  • This is not a breaking change
  • This is a breaking change

Review Suggestion

Status

Implementation

  • ready for review

Integration Test (Core Team)

  • local machine test
  • small-scale cloud test

@sandipbhoir sandipbhoir added the Ready Ready for review label Apr 1, 2021
@sandipbhoir sandipbhoir self-assigned this Apr 1, 2021
@github-actions github-actions bot changed the title Fix corner case : handle receving of stale txblocks [master] Fix corner case : handle receving of stale txblocks Apr 1, 2021
@github-actions github-actions bot added this to PRs in development in Core Apr 1, 2021
@ansnunez ansnunez moved this from PRs in development to PRs needing review in Core Apr 1, 2021
Core automation moved this from PRs needing review to PRs approved - ready to merge! Apr 1, 2021
comment

handle dsepoch cross at startup of seed
@sandipbhoir sandipbhoir merged commit abb1ffd into master Apr 1, 2021
Core automation moved this from PRs approved - ready to merge! to PRs done (merged) Apr 1, 2021
@sandipbhoir sandipbhoir deleted the fix/settxblock branch April 1, 2021 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready Ready for review
Projects
Core
  
PRs done (merged)
Development

Successfully merging this pull request may close these issues.

None yet

4 participants