Skip to content

fix sysvar handling when we’re slot leader & for speculative replay - #263

Merged
smcio merged 2 commits into
alpenglow-devfrom
smcio/leader-stale-sysvar-fix
Aug 14, 2026
Merged

fix sysvar handling when we’re slot leader & for speculative replay#263
smcio merged 2 commits into
alpenglow-devfrom
smcio/leader-stale-sysvar-fix

Conversation

@smcio

@smcio smcio commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

We were using a global sysvar cache, which could refer to sysvar values from the wrong bank during speculative fork replay and when producing blocks as leader.

changes:

  • introduced BankSysvars
  • made replay and block production derive sysvars from the exact parent bank
  • hence moved sysvar reads and other consumers away from the global cache
  • alloc and deserialization free
  • preserved sysvar state when passing the latest replayed bank state to block production and fork unwinds
  • tests

@smcio smcio changed the title fix sysvar handling when we’re slot leader fix sysvar handling when we’re slot leader & for speculative replay Aug 14, 2026
@smcio
smcio merged commit e971471 into alpenglow-dev Aug 14, 2026
1 check 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.

4 participants