Skip to content

Commit

Permalink
Merge pull request #338 from input-output-hk/jordan/show-instance-fol…
Browse files Browse the repository at this point in the history
…dblockserror

Add Show instance for FoldBlocksError
  • Loading branch information
Jimbo4350 authored Oct 23, 2023
2 parents 807342e + f483aa5 commit 3fbcf3b
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 3fbcf3b

Please sign in to comment.