mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 18:32:42 +00:00
Subscribe to the correct subnets for electra attestations (#5782)
* subscribe to the correct att subnets for electra * subscribe to the correct att subnets for electra
This commit is contained in:
committed by
realbigsean
parent
793764f066
commit
fc15736fcb
@@ -795,9 +795,9 @@ impl<'a, T: BeaconChainTypes> IndexedUnaggregatedAttestation<'a, T> {
|
||||
committees_per_slot: u64,
|
||||
subnet_id: Option<SubnetId>,
|
||||
chain: &BeaconChain<T>,
|
||||
) -> Result<(u64, SubnetId), Error> {
|
||||
let expected_subnet_id = SubnetId::compute_subnet_for_attestation_data::<T::EthSpec>(
|
||||
indexed_attestation.data(),
|
||||
) -> Result<(u64, SubnetId), Error> {
|
||||
let expected_subnet_id = SubnetId::compute_subnet_for_attestation::<T::EthSpec>(
|
||||
&attestation,
|
||||
committees_per_slot,
|
||||
&chain.spec,
|
||||
)
|
||||
|
||||
@@ -1168,8 +1168,8 @@ where
|
||||
agg_sig
|
||||
};
|
||||
|
||||
let subnet_id = SubnetId::compute_subnet_for_attestation_data::<E>(
|
||||
attestation.data(),
|
||||
let subnet_id = SubnetId::compute_subnet_for_attestation::<E>(
|
||||
&attestation.to_ref(),
|
||||
committee_count,
|
||||
&self.chain.spec,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user