File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/ChainDB Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -842,14 +842,7 @@ validate cfg Model{initLedger, invalid} chain =
842
842
ledger
843
843
(invalid <> mkInvalid b e)
844
844
-- Valid block according to the ledger
845
- Right ledger'
846
- -- But the block has been recorded as an invalid block. It must be
847
- -- that it exceeded the clock skew in the past.
848
- | Map. member (blockHash b) invalid ->
849
- ValidatedChain validPrefix ledger invalid
850
- -- This is the good path
851
- | otherwise ->
852
- go (convertMapKind ledger') (validPrefix :> b) bs'
845
+ Right ledger' -> go (convertMapKind ledger') (validPrefix :> b) bs'
853
846
854
847
chains ::
855
848
forall blk .
Original file line number Diff line number Diff line change 25
25
-- These are the main tests for the chain DB. Commands include
26
26
--
27
27
-- * Add a block
28
- -- * Add a block with a @SlotNo@ that is ahead of the wall-clock.
29
28
-- * Get the current chain and/or ledger state
30
29
-- * Create a new iterator and use it to stream blocks
31
30
-- * Create a new follower and use it to follow the chain
@@ -178,9 +177,7 @@ import Test.Util.WithEq
178
177
179
178
-- | Commands
180
179
data Cmd blk it flr
181
- = -- | Advance the current slot to the block's slot (unless smaller than the
182
- -- current slot), add the block and run chain selection.
183
- AddBlock blk
180
+ = AddBlock blk
184
181
| GetCurrentChain
185
182
| GetTipBlock
186
183
| GetTipHeader
You can’t perform that action at this time.
0 commit comments