Trait sc_network::NetworkTransaction
source · pub trait NetworkTransaction<H> {
fn trigger_repropagate(&self);
fn propagate_transaction(&self, hash: H);
}
Expand description
Provides ability to propagate transactions over the network.
Required Methods§
sourcefn trigger_repropagate(&self)
fn trigger_repropagate(&self)
You may call this when new transactions are imported by the transaction pool.
All transactions will be fetched from the TransactionPool
that was passed at
initialization as part of the configuration and propagated to peers.
sourcefn propagate_transaction(&self, hash: H)
fn propagate_transaction(&self, hash: H)
You must call when new transaction is imported by the transaction pool.
This transaction will be fetched from the TransactionPool
that was passed at
initialization as part of the configuration and propagated to peers.