Skip to content

Commit

Permalink
Add Show instance for FoldBlocksError
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Oct 23, 2023
1 parent 807342e commit f483aa5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cardano-api/internal/Cardano/Api/LedgerState.hs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ pattern LedgerStateConway st <- LedgerState (Consensus.LedgerStateConway st)
data FoldBlocksError
= FoldBlocksInitialLedgerStateError InitialLedgerStateError
| FoldBlocksApplyBlockError LedgerStateError
deriving Show

renderFoldBlocksError :: FoldBlocksError -> Text
renderFoldBlocksError fbe = case fbe of
Expand Down Expand Up @@ -438,6 +439,7 @@ foldBlocks nodeConfigFilePath socketPath validationMode state0 accumulate = do
chainSyncClient :: Word32
-- ^ The maximum number of concurrent requests.
-> IORef a
-- ^ State accumulator. Written to on every block.
-> IORef (Maybe LedgerStateError)
-- ^ Resulting error if any. Written to once on protocol
-- completion.
Expand Down

0 comments on commit f483aa5

Please sign in to comment.