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

Companion PR for substrate #5939 #1075

Merged
merged 1 commit into from
May 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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