Skip to content

Conversation

@golddydev
Copy link
Collaborator

@golddydev golddydev commented Dec 11, 2025

Description

We have rewards all correct up to epoch 215, but there was a error on vrf validation: VrfLeaderValueTooBig.

And this is caused by wrong calculation of pool's relative stakes.

The main cause:
We need to apply rewards from previous epoch before we publish SPDD message. (SPDD works as snapshots on VRF validation)

Related Issue(s)

Fixes #392

How was this tested?

Manually run omnibus till epoch 214, and check there is no vrf validation error.

Checklist

  • My code builds and passes local tests
  • I added/updated tests for my changes, where applicable
  • I updated documentation (if applicable)
  • CI is green for this PR

Impact / Side effects

No side effects.

Reviewer notes / Areas to focus

accounts_state/src/accounts_state.rs

EPOCH rule reference from haskell code:
https://github.com/IntersectMBO/cardano-ledger/blob/24ef1741c5e0109e4d73685a24d8e753e225656d/eras/shelley/impl/src/Cardano/Ledger/Shelley/Rules/NewEpoch.hs#L160

@golddydev golddydev marked this pull request as ready for review December 11, 2025 16:05
@golddydev golddydev requested a review from shd December 11, 2025 16:06
Copy link
Collaborator

@sandtreader sandtreader left a comment

Choose a reason for hiding this comment

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

This looks good, thanks for chasing this down!

@golddydev golddydev merged commit 1e446ba into main Dec 12, 2025
2 checks passed
@golddydev golddydev deleted the gd/fix-vrf branch December 12, 2025 05:53
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.

Check VRF validation up to epoch 214

3 participants