Skip to content

Commit

Permalink
Merge #3143
Browse files Browse the repository at this point in the history
3143: Add `chainSyncClientWithLedgerState` and `chainSyncClientPipelinedWithLedgerState` r=DavidEichmann a=DavidEichmann

These wrap a ChainSyncClient(Pipelined) with logic to track the ledger state while also supporting rollback.

Co-authored-by: David Eichmann <[email protected]>
  • Loading branch information
iohk-bors[bot] and DavidEichmann authored Aug 30, 2021
2 parents 8164a56 + 1e25f62 commit 171e8af
Show file tree
Hide file tree
Showing 5 changed files with 376 additions and 68 deletions.
3 changes: 3 additions & 0 deletions cardano-api/src/Cardano/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,12 @@ module Cardano.Api (
LedgerState(..),
initialLedgerState,
applyBlock,
ValidationMode(..),

-- *** Traversing the block chain
foldBlocks,
chainSyncClientWithLedgerState,
chainSyncClientPipelinedWithLedgerState,

-- *** Errors
FoldBlocksError(..),
Expand Down
Loading

0 comments on commit 171e8af

Please sign in to comment.