mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-11 18:04:18 +00:00
Fix failing attestation tests and misc electra attestation cleanup (#5810)
* - get attestation related beacon chain tests to pass - observed attestations are now keyed off of data + committee index - rename op pool attestationref to compactattestationref - remove unwraps in agg pool and use options instead - cherry pick some changes from ef-tests-electra * cargo fmt * fix failing test * Revert dockerfile changes * make committee_index return option * function args shouldnt be a ref to attestation ref * fmt * fix dup imports --------- Co-authored-by: realbigsean <seananderson33@GMAIL.com>
This commit is contained in:
@@ -401,17 +401,17 @@ impl<E: EthSpec> std::fmt::Display for PubsubMessage<E> {
|
||||
),
|
||||
PubsubMessage::AggregateAndProofAttestation(att) => write!(
|
||||
f,
|
||||
"Aggregate and Proof: slot: {}, index: {}, aggregator_index: {}",
|
||||
"Aggregate and Proof: slot: {}, index: {:?}, aggregator_index: {}",
|
||||
att.message().aggregate().data().slot,
|
||||
att.message().aggregate().data().index,
|
||||
att.message().aggregate().committee_index(),
|
||||
att.message().aggregator_index(),
|
||||
),
|
||||
PubsubMessage::Attestation(data) => write!(
|
||||
f,
|
||||
"Attestation: subnet_id: {}, attestation_slot: {}, attestation_index: {}",
|
||||
"Attestation: subnet_id: {}, attestation_slot: {}, attestation_index: {:?}",
|
||||
*data.0,
|
||||
data.1.data().slot,
|
||||
data.1.data().index,
|
||||
data.1.committee_index(),
|
||||
),
|
||||
PubsubMessage::VoluntaryExit(_data) => write!(f, "Voluntary Exit"),
|
||||
PubsubMessage::ProposerSlashing(_data) => write!(f, "Proposer Slashing"),
|
||||
|
||||
Reference in New Issue
Block a user