Trait sp_transaction_pool::LocalTransactionPool[][src]

pub trait LocalTransactionPool: Send + Sync {
    type Block: BlockT;
    type Hash: Hash + Eq + Member + Serialize;
    type Error: From<Error> + IntoPoolError;
    fn submit_local(
        &self,
        at: &BlockId<Self::Block>,
        xt: LocalTransactionFor<Self>
    ) -> Result<Self::Hash, Self::Error>; }

Transaction pool interface for submitting local transactions that exposes a blocking interface for submission.

Associated Types

type Block: BlockT[src]

Block type.

type Hash: Hash + Eq + Member + Serialize[src]

Transaction hash type.

type Error: From<Error> + IntoPoolError[src]

Error type.

Loading content...

Required methods

fn submit_local(
    &self,
    at: &BlockId<Self::Block>,
    xt: LocalTransactionFor<Self>
) -> Result<Self::Hash, Self::Error>
[src]

Submits the given local unverified transaction to the pool blocking the current thread for any necessary pre-verification. NOTE: It MUST NOT be used for transactions that originate from the network or RPC, since the validation is performed with TransactionSource::Local.

Loading content...

Implementors

Loading content...