mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 05:18:30 +00:00
Delete SlotClock errs from block_processing, tidy.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use super::BenchingBeaconNode;
|
||||
use attester::{BeaconNode as AttesterBeaconNode, BeaconNodeError as NodeError, PublishOutcome};
|
||||
use beacon_chain::block_processing::Error as ProcessingError;
|
||||
use beacon_chain::block_production::Error as BlockProductionError;
|
||||
use db::ClientDB;
|
||||
use slot_clock::SlotClock;
|
||||
@@ -9,7 +8,6 @@ use types::{AttestationData, FreeAttestation};
|
||||
impl<T: ClientDB, U: SlotClock> AttesterBeaconNode for BenchingBeaconNode<T, U>
|
||||
where
|
||||
BlockProductionError: From<<U>::Error>,
|
||||
ProcessingError: From<<U as SlotClock>::Error>,
|
||||
{
|
||||
fn produce_attestation_data(
|
||||
&self,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use super::BenchingBeaconNode;
|
||||
use beacon_chain::block_processing::Error as ProcessingError;
|
||||
use beacon_chain::block_production::Error as BlockProductionError;
|
||||
use block_producer::{
|
||||
BeaconNode as BeaconBlockNode, BeaconNodeError as BeaconBlockNodeError, PublishOutcome,
|
||||
@@ -11,7 +10,6 @@ use types::{BeaconBlock, PublicKey, Signature};
|
||||
impl<T: ClientDB, U: SlotClock> BeaconBlockNode for BenchingBeaconNode<T, U>
|
||||
where
|
||||
BlockProductionError: From<<U>::Error>,
|
||||
ProcessingError: From<<U as SlotClock>::Error>,
|
||||
{
|
||||
/// Requests the `proposer_nonce` from the `BeaconChain`.
|
||||
fn proposer_nonce(&self, pubkey: &PublicKey) -> Result<u64, BeaconBlockNodeError> {
|
||||
|
||||
@@ -2,7 +2,6 @@ use attester::{Attester, Error as AttestationPollError};
|
||||
use beacon_chain::BeaconChain;
|
||||
use block_producer::{BlockProducer, Error as BlockPollError};
|
||||
use db::MemoryDB;
|
||||
use log::trace;
|
||||
use signer::TestSigner;
|
||||
use slot_clock::TestingSlotClock;
|
||||
use std::sync::Arc;
|
||||
|
||||
Reference in New Issue
Block a user