Trait sc_service::InPoolTransaction [−][src]
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
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.
Implementations on Foreign Types
impl<Hash, Extrinsic> InPoolTransaction for Transaction<Hash, Extrinsic>
[src][−]
type Transaction = Extrinsic
type Hash = Hash
pub fn data(&self) -> &Extrinsic
[src]
pub fn hash(&self) -> &Hash
[src]
pub fn priority(&self) -> &u64
[src]
pub fn longevity(&self) -> &u64
[src]
pub fn requires(&self) -> &[Vec<u8, Global>]
[src]
pub fn provides(&self) -> &[Vec<u8, Global>]
[src]
pub fn is_propagable(&self) -> bool
[src]
Implementors
impl<Hash, Extrinsic> InPoolTransaction for Transaction<Hash, Extrinsic>
impl<Hash, Extrinsic> InPoolTransaction for Transaction<Hash, Extrinsic>