Skip to content

Commit d023633

Browse files
wip
1 parent 296fb5b commit d023633

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/block.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -472,24 +472,6 @@ pub fn execute_block(context: BlockContext) -> Option<BlockEffects> {
472472
),
473473
);
474474

475-
let stakes_current_accounts = Stakes::new(&stakes_t, |pubkey| {
476-
context
477-
.acct_states
478-
.iter()
479-
.find(|acct| {
480-
Pubkey::new_from_array(acct.address.clone().try_into().unwrap()) == *pubkey
481-
})
482-
.map(AccountSharedData::from)
483-
})
484-
.unwrap();
485-
epoch_stakes.insert(
486-
leader_schedule_epoch.saturating_add(1),
487-
VersionedEpochStakes::new(
488-
SerdeStakesToStakeFormat::from(stakes_current_accounts),
489-
leader_schedule_epoch.saturating_add(1),
490-
),
491-
);
492-
493475
let fee_rate_governor = slot_ctx.fee_rate_governor.unwrap();
494476

495477
let mut parent_lthash = LtHash::identity();

0 commit comments

Comments
 (0)