Function cuprate_txpool::ops::add_transaction

source ·
pub fn add_transaction(
    tx: &TransactionVerificationData,
    state_stem: bool,
    tables: &mut impl TablesMut,
) -> Result<(), TxPoolWriteError>
Expand description

Adds a transaction to the tx-pool.

This function fills in all tables necessary to add the transaction to the pool.

§Panics

This function will panic if the transactions inputs are not all of type Input::ToKey.