Update sync rewards API for abstract exec payload

This commit is contained in:
Michael Sproul 2023-01-25 15:46:47 +11:00
parent c76a1971cc
commit 79a20e8a5f
No known key found for this signature in database
GPG Key ID: 77B1309D2E54E914

View File

@ -6,10 +6,10 @@ use slog::error;
use state_processing::per_block_processing::altair::sync_committee::compute_sync_aggregate_rewards; use state_processing::per_block_processing::altair::sync_committee::compute_sync_aggregate_rewards;
use std::collections::HashMap; use std::collections::HashMap;
use store::RelativeEpoch; use store::RelativeEpoch;
use types::{BeaconBlockRef, BeaconState, ExecPayload}; use types::{AbstractExecPayload, BeaconBlockRef, BeaconState};
impl<T: BeaconChainTypes> BeaconChain<T> { impl<T: BeaconChainTypes> BeaconChain<T> {
pub fn compute_sync_committee_rewards<Payload: ExecPayload<T::EthSpec>>( pub fn compute_sync_committee_rewards<Payload: AbstractExecPayload<T::EthSpec>>(
&self, &self,
block: BeaconBlockRef<'_, T::EthSpec, Payload>, block: BeaconBlockRef<'_, T::EthSpec, Payload>,
state: &mut BeaconState<T::EthSpec>, state: &mut BeaconState<T::EthSpec>,