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 @@ -96,7 +96,7 @@ data LedgerTablesHandle m l = LedgerTablesHandle
96
96
-- The first argument has to be the ledger state before applying
97
97
-- the block, the second argument should be the ledger state after
98
98
-- applying a block. See 'CanUpgradeLedgerTables'.
99
- , takeHandleSnapshot :: ! (l EmptyMK -> String -> m CRC )
99
+ , takeHandleSnapshot :: ! (l EmptyMK -> String -> m ( Maybe CRC ) )
100
100
, tablesSize :: ! (m (Maybe Int ))
101
101
-- ^ Consult the size of the ledger tables in the database. This will return
102
102
-- 'Nothing' in backends that do not support this operation.
You can’t perform that action at this time.
0 commit comments