Delete SlotClock errs from block_processing, tidy.

This commit is contained in:
Paul Hauner
2019-02-01 16:07:59 +11:00
parent 1e6f85a5eb
commit 9d1f98ba8f
4 changed files with 22 additions and 22 deletions

View File

@@ -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,

View File

@@ -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> {

View File

@@ -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;