We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3be5760 commit 634e844Copy full SHA for 634e844
ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/LedgerDB/StateMachine.hs
@@ -553,7 +553,9 @@ instance RunModel Model (StateT Environment IO) where
553
vr <- validateFork ldb rr (const $ pure ()) BlockCache.empty n (map getHeader blks)
554
case vr of
555
ValidateSuccessful forker -> do
556
- atomically $ modifyTVar (dbChain chainDb) (reverse (map blockRealPoint blks) ++)
+ atomically $
557
+ modifyTVar (dbChain chainDb) $
558
+ (reverse (map blockRealPoint blks) ++) . drop (fromIntegral n)
559
atomically (forkerCommit forker)
560
forkerClose forker
561
ValidateExceededRollBack{} -> error "Unexpected Rollback"
0 commit comments