| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.Ledger.MempoolTx.Internal
Description
Provides MempoolTx internals
Warning
This module is considered internal.
The contents of this module may change in any way whatsoever and without any warning between minor versions of this package.
Synopsis
- newtype MempoolTx era = UnsafeMkMempoolTx {
- unMempoolTx ∷ Tx 'TopTx era
- unwrapMempoolTx ∷ MempoolTx era → Tx 'TopTx era
Documentation
newtype MempoolTx era Source #
A top-level transaction as it is received by the mempool.
A transaction in the mempool and a transaction in a block do not have the same serialization and they have different concerns, therefore they are not interchangeable. New submissions are obtained by decoding their mempool serialization. The constructor is kept internal to prevent accidental wrapping of a transaction taken from a block.
Warning - The UnsafeMkMempoolTx constructor is for codecs, trusted ledger operations,
and testing. It must not be used to turn an arbitrary block transaction into a mempool
transaction.
Constructors
| UnsafeMkMempoolTx | |
Fields
| |