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

[Merged by Bors] - More sync edge cases + prettify range #1834

Closed

Conversation

divagant-martian
Copy link
Collaborator

Issue Addressed

Sync edge case when we get an empty optimistic batch that passes validation and is inside the download buffer. Eventually the chain would reach the batch and treat it as an ugly state.

Proposed Changes

  • Handle the edge case advancing the chain's target + code clarification
  • Some largey changes for readability + ergonomics since rust has try ops
  • Better handling of bad batch and chain states

Copy link
Member

@AgeManning AgeManning left a comment

Choose a reason for hiding this comment

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

Yeah this looks good. Good idea to upgrade the processing result to an actual result.

Thinks look cleaner. I'll merge this an run some further sync tests in combination with some of my new code.

@AgeManning
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Oct 29, 2020
## Issue Addressed
Sync edge case when we get an empty optimistic batch that passes validation and is inside the download buffer. Eventually the chain would reach the batch and treat it as an ugly state. 

## Proposed Changes
- Handle the edge case advancing the chain's target + code clarification
- Some largey changes for readability + ergonomics since rust has try ops
- Better handling of bad batch and chain states
@bors bors bot changed the title More sync edge cases + prettify range [Merged by Bors] - More sync edge cases + prettify range Oct 29, 2020
@bors bors bot closed this Oct 29, 2020
@divagant-martian divagant-martian deleted the bad-batch-state branch January 4, 2021 08:33
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.

2 participants