ouroboros-consensus-0.1.0.1: Consensus layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Consensus.HardFork.Combinator.InjectTxs

Description

Injecting a transaction from one block type to another

Synopsis

Polymorphic

data InjectPolyTx tx blk blk' Source #

Constructors

InjectPolyTx

Fields

cannotInjectPolyTx :: InjectPolyTx tx blk blk' Source #

The injection that always fails

matchPolyTxsNS :: forall tx f xs. SListI xs => InPairs ( InjectPolyTx tx) xs -> NS f xs -> [ NS tx xs] -> ([ Mismatch tx f xs], NS ( Product f ([] :.: tx)) xs) Source #

Match a list of transactions with an NS , attempting to inject where possible

Unvalidated transactions

Validated transactions