Skip to content

Commit

Permalink
stake_redelegate: update the comments on the correctness of the epoch…
Browse files Browse the repository at this point in the history
…_rewards_init implementation
  • Loading branch information
jumpsiegel committed Apr 29, 2024
1 parent f737c5c commit 01035d6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/flamenco/runtime/sysvar/fd_sysvar_epoch_rewards.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ fd_sysvar_epoch_rewards_init(
FD_TEST( total_rewards >= distributed_rewards );

fd_sysvar_epoch_rewards_t epoch_rewards = {
// THIS IS ALL WRONG... this needs to be fixed for how epoch rewards have been rewritten
// THIS IS ALL WRONG... the partitioned epoch rewards code paths have not been finalized with agave
// so these changes are here to support getting the fuzz tests to pass and not actual ledger correctness.
//
// Also, since this feature has not been activated in mainnet or testnet, the account itself does not
// exist which is why they felt free to change the layout outside of a feature flag.
//
// Once the Agave code has stabilized, we will make a proper implementation pass
.epoch_rewards= {
// .distribution_starting_block_height = distribution_starting_block_height,
.distribution_starting_block_height = distribution_complete_block_height,
Expand Down

0 comments on commit 01035d6

Please sign in to comment.