[][src]Trait sc_service::InPoolTransaction

pub trait InPoolTransaction {
    type Transaction;
    type Hash;
    pub fn data(&self) -> &Self::Transaction;
pub fn hash(&self) -> &Self::Hash;
pub fn priority(&self) -> &u64;
pub fn longevity(&self) -> &u64;
pub fn requires(&self) -> &[Vec<u8, Global>];
pub fn provides(&self) -> &[Vec<u8, Global>];
pub fn is_propagable(&self) -> bool; }

In-pool transaction interface.

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

Associated Types

type Transaction[src]

Transaction type.

type Hash[src]

Transaction hash type.

Loading content...

Required methods

pub fn data(&self) -> &Self::Transaction[src]

Get the reference to the transaction data.

pub fn hash(&self) -> &Self::Hash[src]

Get hash of the transaction.

pub fn priority(&self) -> &u64[src]

Get priority of the transaction.

pub fn longevity(&self) -> &u64[src]

Get longevity of the transaction.

pub fn requires(&self) -> &[Vec<u8, Global>][src]

Get transaction dependencies.

pub fn provides(&self) -> &[Vec<u8, Global>][src]

Get tags that transaction provides.

pub fn is_propagable(&self) -> bool[src]

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

Loading content...

Implementations on Foreign Types

impl<Hash, Extrinsic> InPoolTransaction for Transaction<Hash, Extrinsic>[src]

type Transaction = Extrinsic

type Hash = Hash

Loading content...

Implementors

Loading content...