| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Rpc.Server.Internal.UtxoRpc.Type.Mempool
Description
Conversion of a mempool transaction to the UTxO RPC TxInMempool
message.
Synopsis
Documentation
txInModeToTxInMempool Source #
Arguments
| :: TxInMode | The transaction read from the mempool |
| -> Maybe (Proto TxInMempool) |
Convert a transaction read from the mempool to the full UTxO RPC
TxInMempool message, always at STAGE_MEMPOOL.
txInModeToTxInMempoolFields Source #
Arguments
| :: TxInMode | The transaction read from the mempool |
| -> Maybe TxInMempoolFields |
Convert a transaction read from the mempool to the lazy per-field inputs
of the UTxO RPC TxInMempool message.
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.
data TxInMempoolFields Source #
Per-transaction inputs of watchMempoolFill. The fields are lazy:
a field the mask does not select is never computed.
A record rather than a TxInMempool built from defMessage, because the
message's scalar fields (ref, native_bytes) are strict and would be computed
whenever the message is evaluated. The request predicate and the response also
share the one cardano conversion through txInMempoolFieldsCardano.
Constructors
| TxInMempoolFields | |
Fields
| |
watchMempoolFill :: FieldFill ((->) TxInMempoolFields) WatchMempoolResponse Source #
Fill the fields of a WatchMempool response that a mask selects, from the
TxInMempoolFields of a transaction.