cardano-rpc
Safe HaskellNone
LanguageHaskell2010

Cardano.Rpc.Server.Internal.UtxoRpc.Type.Mempool

Description

Conversion of a mempool transaction to the UTxO RPC TxInMempool message.

Synopsis

Documentation

txInModeToTxInMempool :: TxInMode -> Maybe (Proto TxInMempool) Source #

Convert a transaction read from the mempool to the UTxO RPC TxInMempool message, always at STAGE_MEMPOOL.

native_bytes fidelity differs by era: the Shelley-onwards ledger Tx is not SafeToHash-backed, so its native_bytes is a canonical re-encoding, not the submitter's original bytes (same caveat as txOutToUtxoRpcTxOutput). The Byron arm has no such caveat: its ATxAux carries a real byte annotation, so recoverBytes recovers the true original bytes.

Nothing for the three Byron special payloads (delegation certificates, update proposals, update votes): they have no proto Tx representation, and cannot occur on any network still running today, since Byron transitioned to Shelley years before any currently live Cardano network started.