Skip to content

Commit

Permalink
Companion PR for substrate paritytech#5939 (paritytech#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikVolf authored May 11, 2020
1 parent 1799437 commit a97de19
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: Extrinsic) -> TransactionImportFuture {
Box::pin(futures::future::ready(TransactionImport::None))
}

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

Expand Down

0 comments on commit a97de19

Please sign in to comment.