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

Update leadership-schedule command to calculate following epoch's schedule #3494

Merged

Conversation

Jimbo4350
Copy link
Contributor

@Jimbo4350 Jimbo4350 commented Jan 11, 2022

cardano-cli query leadership-schedule ... now accepts the flag --next that allows the leadership schedule calculation for the following epoch.

Resolves #3546

@Jimbo4350 Jimbo4350 force-pushed the jordan/cli-command-get-eligible-leadership-slots-next branch 2 times, most recently from 4543704 to c27e388 Compare January 11, 2022 17:14
let Tick.TicknState epochNonce _ = TPraos.csTickn chainDepState


return $ isLeadingSlots sbe rOfInterest epochNonce pParams vrfSkey relativeStake f
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return $ isLeadingSlots sbe rOfInterest epochNonce pParams vrfSkey relativeStake f
return $ isLeadingSlots sbe rOfInterest candidateNonce pParams vrfSkey relativeStake f

@Jimbo4350 Jimbo4350 force-pushed the jordan/cli-command-get-eligible-leadership-slots-next branch 2 times, most recently from 2f4bed5 to 2b8b7df Compare January 31, 2022 15:58
@Jimbo4350 Jimbo4350 marked this pull request as ready for review January 31, 2022 15:59
Update leadership-schedule command to calculate the following epoch's
leadership schedule for a given stake pool
@Jimbo4350 Jimbo4350 force-pushed the jordan/cli-command-get-eligible-leadership-slots-next branch from 2b8b7df to 24b7468 Compare February 2, 2022 22:36
Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

LGTM!

@Jimbo4350
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Feb 8, 2022

Build succeeded:

@iohk-bors iohk-bors bot merged commit 272aa77 into master Feb 8, 2022
@iohk-bors iohk-bors bot deleted the jordan/cli-command-get-eligible-leadership-slots-next branch February 8, 2022 14:06
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.

Upgrade leadership schedule command to predict following epoch's leadership schedule
3 participants