mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-22 22:34:45 +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
@@ -146,8 +146,8 @@ fn get_valid_unaggregated_attestation<T: BeaconChainTypes>(
|
||||
)
|
||||
.expect("should sign attestation");
|
||||
|
||||
let subnet_id = SubnetId::compute_subnet_for_attestation_data::<E>(
|
||||
valid_attestation.data(),
|
||||
let subnet_id = SubnetId::compute_subnet_for_attestation::<E>(
|
||||
&valid_attestation.to_ref(),
|
||||
head.beacon_state
|
||||
.get_committee_count_at_slot(current_slot)
|
||||
.expect("should get committee count"),
|
||||
|
||||
Reference in New Issue
Block a user