File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/LedgerDB/V2 Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ newInMemoryLedgerTablesHandle tracer someFS@(SomeHasFS hasFS) l = do
139
139
guardClosed h $
140
140
\ values ->
141
141
withFile hasFS (mkFsPath [snapshotName, " tables" , " tvar" ]) (WriteMode MustBeNew ) $ \ hf ->
142
- fmap snd $
142
+ fmap ( Just . snd ) $
143
143
hPutAllCRC hasFS hf $
144
144
CBOR. toLazyByteString $
145
145
valuesMKEncoder hint values
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ data LedgerTablesHandle m l = LedgerTablesHandle
95
95
-- The first argument has to be the ledger state before applying
96
96
-- the block, the second argument should be the ledger state after
97
97
-- applying a block. See 'CanUpgradeLedgerTables'.
98
- , takeHandleSnapshot :: ! (l EmptyMK -> String -> m CRC )
98
+ , takeHandleSnapshot :: ! (l EmptyMK -> String -> m ( Maybe CRC ) )
99
99
, tablesSize :: ! (m (Maybe Int ))
100
100
-- ^ Consult the size of the ledger tables in the database. This will return
101
101
-- 'Nothing' in backends that do not support this operation.
You can’t perform that action at this time.
0 commit comments