Skip to content

Conversation

jmcph4
Copy link
Contributor

@jmcph4 jmcph4 commented Jul 5, 2023

Issue Addressed

#4331

Proposed Changes

  • Use comparison rather than strict equality between the earliest epoch we know about and the backfill target (which will be the most recent WSP by default or genesis)
  • Add helper function BackFillSync<T>::would_complete to achieve this in one location

Additional Info

@jmcph4 jmcph4 requested a review from AgeManning July 5, 2023 03:59
@jmcph4 jmcph4 self-assigned this Jul 5, 2023
@jmcph4 jmcph4 added the v4.4.1 ETA August 2023 label Jul 5, 2023
Copy link
Contributor

@divagant-martian divagant-martian left a comment

Choose a reason for hiding this comment

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

Yep, this looks like what I had in mind. LGTM

Also checked that the test now passes

@jmcph4 jmcph4 added Networking ready-for-review The code is ready for review labels Jul 5, 2023
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.

Nice, looks good

@AgeManning AgeManning added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Jul 6, 2023
@AgeManning
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Jul 6, 2023
## Issue Addressed

#4331 

## Proposed Changes

 - Use comparison rather than strict equality between the earliest epoch we know about and the backfill target (which will be the most recent WSP by default or genesis)
 - Add helper function `BackFillSync<T>::would_complete` to achieve this in one location

## Additional Info

 - There's an ad hoc test for this in #4461


Co-authored-by: Age Manning <[email protected]>
@bors
Copy link

bors bot commented Jul 6, 2023

@bors bors bot changed the title Correct checks for backfill completeness [Merged by Bors] - Correct checks for backfill completeness Jul 6, 2023
@bors bors bot closed this Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking ready-for-merge This PR is ready to merge. v4.4.1 ETA August 2023
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants