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 63be310 commit 3be5760Copy full SHA for 3be5760
ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/LedgerDB/StateMachine.hs
@@ -365,7 +365,9 @@ instance StateModel Model where
365
n <= min (BT.unNonZero $ maxRollbacks secParam) (fromIntegral $ AS.length chain)
366
&& case blks of
367
[] -> True
368
- (b : _) -> tbSlot b == 1 + withOrigin 0 id (getTipSlot (AS.headAnchor chain))
+ (b : _) -> tbSlot b == 1 + fromWithOrigin 0 (getTipSlot (AS.headAnchor chain'))
369
+ where
370
+ chain' = AS.dropNewest (fromIntegral n) chain
371
precondition _ Init{} = False
372
precondition _ _ = True
373
0 commit comments