referrerpolicy=no-referrer-when-downgrade

Trait sc_transaction_pool_api::InPoolTransaction

source ·
pub trait InPoolTransaction {
    type Transaction;
    type Hash;

    // Required methods
    fn data(&self) -> &Self::Transaction;
    fn hash(&self) -> &Self::Hash;
    fn priority(&self) -> &TransactionPriority;
    fn longevity(&self) -> &TransactionLongevity;
    fn requires(&self) -> &[TransactionTag];
    fn provides(&self) -> &[TransactionTag];
    fn is_propagable(&self) -> bool;
}
Expand description

In-pool transaction interface.

The pool is container of transactions that are implementing this trait. See sp_runtime::ValidTransaction for details about every field.

Required Associated Types§

source

type Transaction

Transaction type.

source

type Hash

Transaction hash type.

Required Methods§

source

fn data(&self) -> &Self::Transaction

Get the reference to the transaction data.

source

fn hash(&self) -> &Self::Hash

Get hash of the transaction.

source

fn priority(&self) -> &TransactionPriority

Get priority of the transaction.

source

fn longevity(&self) -> &TransactionLongevity

Get longevity of the transaction.

source

fn requires(&self) -> &[TransactionTag]

Get transaction dependencies.

source

fn provides(&self) -> &[TransactionTag]

Get tags that transaction provides.

source

fn is_propagable(&self) -> bool

Return a flag indicating if the transaction should be propagated to other peers.

Implementors§