Skip to content

fix epoch rounding bug & startup issue - #303

Merged
NeerajGodiyal merged 2 commits into
alpenglow-devfrom
smcio/fix-epoch-and-startup-issues
Oct 14, 2026
Merged

NeerajGodiyal merged 2 commits into
alpenglow-devfrom
smcio/fix-epoch-and-startup-issues

Conversation

@smcio

@smcio smcio commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

Found two divergences, as below:

  • preserve historical vote commissions across startup and restarts so epoch rewards are distributed correctly

  • match Agave’s inflation rounding to prevent occasional one-lamport differences at epoch boundaries

  • restore the parent blockhash after loading a snapshot so durable nonce transactions execute correctly in the first block we replay

These are fixed in this PR.

@NeerajGodiyal NeerajGodiyal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Found one pre-VAT reward regression in the historical commission fallback; details inline.

Comment thread pkg/rewards/rewards.go
7layermagik
7layermagik previously approved these changes Oct 13, 2026
@NeerajGodiyal
NeerajGodiyal merged commit 8e11cd5 into alpenglow-dev Oct 14, 2026
2 checks passed
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.

3 participants