Skip to content

Commit

Permalink
Merge pull request #803 from input-output-hk/plt-9294-marlowe-indexer…
Browse files Browse the repository at this point in the history
…-crash-when-syncing-from-genesis

Plt 9294 marlowe indexer crash when syncing from genesis
  • Loading branch information
Jamie Bertram authored Jan 18, 2024
2 parents 8b4c9b8 + 85d65b9 commit beb77f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- Marlowe Indexer can crash when chain indexer is syncing from Genesis.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ chainSeekClient = component "indexer-chain-seek-client" \ChainSeekClientDependen
pure (point, marloweBlock)

-- Emit the marlowe blocks in a roll forward event to a downstream consumer.
emit $ RollForward (catMaybes blocks') tip
case catMaybes blocks' of
[] -> pure ()
blocks'' -> emit $ RollForward blocks'' tip

-- Loop back into the main synchronization loop with an updated
-- rollback state.
Expand Down

0 comments on commit beb77f5

Please sign in to comment.