Removed unusued codepaths

This commit is contained in:
Eitan Seri-Levi
2025-01-06 16:41:22 +07:00
parent c7ef72d01e
commit 99450793a5
3 changed files with 1 additions and 33 deletions

View File

@@ -155,10 +155,6 @@ async fn attestations_across_fork_with_skip_slots() {
.post_beacon_pool_attestations_v1(&unaggregated_attestations)
.await
.unwrap();
// client
// .post_beacon_pool_attestations_v2(&unaggregated_attestations, fork_name)
// .await
// .unwrap();
let signed_aggregates = attestations
.into_iter()

View File

@@ -29,7 +29,7 @@ use lighthouse_network::{
Client, MessageId, NetworkGlobals, PeerId, PubsubMessage,
};
use rand::prelude::SliceRandom;
use slog::{debug, error, info, trace, warn, Logger};
use slog::{debug, error, trace, warn, Logger};
use slot_clock::ManualSlotClock;
use std::path::PathBuf;
use std::sync::Arc;
@@ -95,7 +95,6 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
should_import: bool,
seen_timestamp: Duration,
) -> Result<(), Error<T::EthSpec>> {
info!(self.log, "SENDING A SINGLE ATTESTATION");
let result = self.chain.with_committee_cache(
single_attestation.data.target.root,
single_attestation

View File

@@ -626,33 +626,6 @@ pub struct SingleAttestation {
}
impl SingleAttestation {
/// Produces a `SingleAttestation` with empty signature and empty attester index.
pub fn empty_for_signing(
committee_index: usize,
slot: Slot,
beacon_block_root: Hash256,
source: Checkpoint,
target: Checkpoint,
) -> Self {
Self {
committee_index,
attester_index: 0,
data: AttestationData {
slot,
index: 0,
beacon_block_root,
source,
target,
},
signature: AggregateSignature::infinity(),
}
}
pub fn add_signature(&mut self, signature: &AggregateSignature, committee_position: usize) {
self.attester_index = committee_position;
self.signature = signature.clone();
}
pub fn to_attestation<E: EthSpec>(
&self,
committee: Option<BeaconCommittee>,