mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 22:08:30 +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:
@@ -25,7 +25,6 @@ use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
use task_executor::ShutdownReason;
|
||||
use tree_hash::TreeHash;
|
||||
use types::*;
|
||||
|
||||
const VALIDATOR_COUNT: usize = 32;
|
||||
@@ -1224,13 +1223,13 @@ async fn attesting_to_optimistic_head() {
|
||||
let get_aggregated = || {
|
||||
rig.harness
|
||||
.chain
|
||||
.get_aggregated_attestation(attestation.data())
|
||||
.get_aggregated_attestation(attestation.to_ref())
|
||||
};
|
||||
|
||||
let get_aggregated_by_slot_and_root = || {
|
||||
rig.harness
|
||||
.chain
|
||||
.get_aggregated_attestation_base(attestation.data())
|
||||
.get_aggregated_attestation(attestation.to_ref())
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user