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

staking: Make Uptime::missed_blocks yield a DoubleEndedIterator #4411

Merged
merged 1 commit into from
May 17, 2024

Conversation

plaidfinch
Copy link
Collaborator

Describe your changes

This adds a DoubleEndedIterator impl for Uptime::missed_blocks's resultant iterator , which is useful if you want the most recent missed blocks first.

Issue ticket number and link

N/A

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    This is a purely additive change that does not affect consensus.

@erwanor erwanor added the A-staking Area: Design and implementation of staking and delegation label May 17, 2024
@erwanor erwanor added this to the Sprint 6 milestone May 17, 2024
@erwanor erwanor changed the title Make Uptime::missed_blocks yield a DoubleEndedIterator staking: Make Uptime::missed_blocks yield a DoubleEndedIterator May 17, 2024
@plaidfinch plaidfinch merged commit 50cb1ff into main May 17, 2024
13 checks passed
@plaidfinch plaidfinch deleted the uptime-double-ended-iterator branch May 17, 2024 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-staking Area: Design and implementation of staking and delegation
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants