Skip to content

Conversation

@grod220
Copy link

@grod220 grod220 commented Dec 18, 2025

Problem

The current stake warmup/cooldown calculations use floating-point arithmetic which blocks the stake program from being compatible with the upstream bpf toolchain. SIMD-0391 specifies a transition to fixed-point integer math which is implemented in the solana-stake-interface crate. In this PR, these exposed methods are feature gated. All validator clients and the stake program itself will need to be updated in lock step.

Summary of Changes

  • Add new feature gate stake_program_fixed_point_warmup_cooldown
  • Introduce runtime dispatch helpers to select legacy float vs fixed-point stake math based on the feature gate. Updates are present in:
    • stake cache updates and vote delegated stake aggregation
    • epoch cache refresh
    • inflation rewards points calculation and reward redemption
  • Added parameterized testings for legacy/fixed point methods

Rollout plan

Feature Gate Issue: #

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.

1 participant