Add get_builders_sweep_withdrawals and fix Gloas withdrawal tests.

This commit is contained in:
Jimmy Chen
2026-01-20 17:07:27 +11:00
parent 5c8acea305
commit 8b4c037fb4
5 changed files with 87 additions and 7 deletions

View File

@@ -4794,7 +4794,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
let proposal_epoch = proposal_slot.epoch(T::EthSpec::slots_per_epoch());
if head_state.current_epoch() == proposal_epoch {
return get_expected_withdrawals(&unadvanced_state, &self.spec)
.map(|(withdrawals, _, _, _)| withdrawals)
.map(|(withdrawals, _, _, _, _)| withdrawals)
.map_err(Error::PrepareProposerFailed);
}
@@ -4812,7 +4812,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
&self.spec,
)?;
get_expected_withdrawals(&advanced_state, &self.spec)
.map(|(withdrawals, _, _, _)| withdrawals)
.map(|(withdrawals, _, _, _, _)| withdrawals)
.map_err(Error::PrepareProposerFailed)
}