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§
sourcetype Transaction
type Transaction
Transaction type.
Required Methods§
sourcefn data(&self) -> &Self::Transaction
fn data(&self) -> &Self::Transaction
Get the reference to the transaction data.
sourcefn priority(&self) -> &TransactionPriority
fn priority(&self) -> &TransactionPriority
Get priority of the transaction.
sourcefn longevity(&self) -> &TransactionLongevity
fn longevity(&self) -> &TransactionLongevity
Get longevity of the transaction.
sourcefn requires(&self) -> &[TransactionTag]
fn requires(&self) -> &[TransactionTag]
Get transaction dependencies.
sourcefn provides(&self) -> &[TransactionTag]
fn provides(&self) -> &[TransactionTag]
Get tags that transaction provides.
sourcefn is_propagable(&self) -> bool
fn is_propagable(&self) -> bool
Return a flag indicating if the transaction should be propagated to other peers.