File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/ChainDB/Impl Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -191,10 +191,9 @@ getIsValid CDB{..} = do
191
191
prevApplied <- LedgerDB. getPrevApplied cdbLedgerDB
192
192
invalid <- forgetFingerprint <$> readTVar cdbInvalid
193
193
return $ \ pt@ (RealPoint _ hash) ->
194
- -- Blocks from the future that were valid according to the ledger but
195
- -- that exceeded the max clock skew will be in 'prevApplied' *and*
196
- -- 'invalid'. So we first check 'invalid' before 'prevApplied'. See
197
- -- #2413.
194
+ -- A block can not both be in the set of invalid blocks and
195
+ -- previously-applied blocks, so the order in which we check them does not
196
+ -- matter.
198
197
if | Map. member hash invalid -> Just False
199
198
| Set. member pt prevApplied -> Just True
200
199
| otherwise -> Nothing
You can’t perform that action at this time.
0 commit comments