[−][src]Trait sc_network::config::TransactionPool
Transaction pool interface
Required methods
fn transactions(&self) -> Vec<(H, B::Extrinsic)>
Get transactions from the pool that are ready to be propagated.
fn hash_of(&self, transaction: &B::Extrinsic) -> H
Get hash of transaction.
fn import(
&self,
report_handle: ReportHandle,
who: PeerId,
reputation_change_good: ReputationChange,
reputation_change_bad: ReputationChange,
transaction: B::Extrinsic
)
&self,
report_handle: ReportHandle,
who: PeerId,
reputation_change_good: ReputationChange,
reputation_change_bad: ReputationChange,
transaction: B::Extrinsic
)
Import a transaction into the pool.
Peer reputation is changed by reputation_change if transaction is accepted by the pool.
fn on_broadcasted(&self, propagations: HashMap<H, Vec<String>>)
Notify the pool about transactions broadcast.
fn transaction(&self, hash: &H) -> Option<B::Extrinsic>
Get transaction by hash.
Implementors
impl<H: ExHashT + Default, B: BlockT> TransactionPool<H, B> for EmptyTransactionPool[src]
fn transactions(&self) -> Vec<(H, B::Extrinsic)>[src]
fn hash_of(&self, _transaction: &B::Extrinsic) -> H[src]
fn import(
&self,
_report_handle: ReportHandle,
_who: PeerId,
_rep_change_good: ReputationChange,
_rep_change_bad: ReputationChange,
_transaction: B::Extrinsic
)[src]
&self,
_report_handle: ReportHandle,
_who: PeerId,
_rep_change_good: ReputationChange,
_rep_change_bad: ReputationChange,
_transaction: B::Extrinsic
)