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

Improve toBeProcessedStartEpoch logic #2106

Merged
merged 1 commit into from
Feb 26, 2021

Conversation

dapplion
Copy link
Contributor

Batches must be sorted, and always match this pattern

[AwaitingValidation]* [Processing]? [AwaitingDownload,Downloading,AwaitingProcessing]*

So it can directly find the first (from end) in state AwaitingValidation, instead of filtering and then computing the max.

Batches must be sorted, so it can directly find the first (from end) in state AwaitingValidation.
@github-actions github-actions bot added the scope-networking All issues related to networking, gossip, and libp2p. label Feb 26, 2021
@codeclimate
Copy link

codeclimate bot commented Feb 26, 2021

Code Climate has analyzed commit bbe62ac and detected 0 issues on this pull request.

View more on Code Climate.

@wemeetagain wemeetagain merged commit cfd69c1 into master Feb 26, 2021
@wemeetagain wemeetagain deleted the dapplion/toBeProcessedStartEpoch branch February 26, 2021 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope-networking All issues related to networking, gossip, and libp2p.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants