Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
NikVolf committed May 7, 2020
1 parent 872bd4f commit 97e20b2
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions network/test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ use sp_consensus::block_import::{BlockImport, ImportResult};
use sp_consensus::Error as ConsensusError;
use sp_consensus::{BlockOrigin, BlockImportParams, BlockCheckParams, JustificationImport};
use futures::prelude::*;
use sc_network::{NetworkWorker, NetworkService, ReportHandle, config::ProtocolId};
use sc_network::config::{NetworkConfiguration, TransportConfig, BoxFinalityProofRequestBuilder};
use sc_network::{NetworkWorker, NetworkService, config::ProtocolId};
use sc_network::config::{
NetworkConfiguration, TransportConfig, BoxFinalityProofRequestBuilder, TransactionImport,
TransactionImportFuture
};
use parking_lot::Mutex;
use sp_core::H256;
use sc_network::{PeerId, config::{ProtocolConfig, TransactionPool}};
Expand Down Expand Up @@ -350,14 +353,9 @@ impl TransactionPool<Hash, Block> for EmptyTransactionPool {
Hash::default()
}

fn import(
&self,
_report_handle: ReportHandle,
_who: PeerId,
_rep_change_good: sc_network::ReputationChange,
_rep_change_bad: sc_network::ReputationChange,
_transaction: Extrinsic
) {}
fn import(&self, transaction: B::Extrinsic) -> TransactionImportFuture {
Box::pin(futures::future::ready(TransactionImport::None))
}

fn on_broadcasted(&self, _: HashMap<Hash, Vec<String>>) {}

Expand Down

0 comments on commit 97e20b2

Please sign in to comment.