cuprated::txpool::incoming_tx

Function handle_valid_tx

Source
async fn handle_valid_tx(
    tx: Arc<TransactionVerificationData>,
    state: TxState<CrossNetworkInternalPeerId>,
    txpool_write_handle: &mut TxpoolWriteHandle,
    dandelion_pool_manager: &mut DandelionPoolService<DandelionTx, [u8; 32], CrossNetworkInternalPeerId>,
)
Expand description

Handle a verified tx.

This will add the tx to the txpool and route it to the network.