Skip to content

Commit

Permalink
Add --limit option so that user can control number of blocks they wan…
Browse files Browse the repository at this point in the history
…t to process
  • Loading branch information
EncodePanda committed Sep 28, 2021
1 parent e0487a5 commit 65148e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ouroboros-consensus-cardano/tools/db-analyser/Analysis.hs
Expand Up @@ -305,7 +305,7 @@ processAllImmutableDB immutableDB rr blockComponent limit initState callback = d
go :: ImmutableDB.Iterator IO blk b -> Limit -> st -> IO st
go itr lt !st = case decreaseLimit lt of
Nothing -> return st
Just decreasedLimit -> do
Just decreasedLimit -> do
itrResult <- ImmutableDB.iteratorNext itr
case itrResult of
ImmutableDB.IteratorExhausted -> return st
Expand Down

0 comments on commit 65148e8

Please sign in to comment.