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
139139 guardClosed h $
140140 \ values ->
141141 withFile hasFS (mkFsPath [snapshotName, " tables" , " tvar" ]) (WriteMode MustBeNew ) $ \ hf ->
142- fmap snd $
142+ fmap ( Just . snd ) $
143143 hPutAllCRC hasFS hf $
144144 CBOR. toLazyByteString $
145145 valuesMKEncoder hint values
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ data LedgerTablesHandle m l = LedgerTablesHandle
9696 -- The first argument has to be the ledger state before applying
9797 -- the block, the second argument should be the ledger state after
9898 -- applying a block. See 'CanUpgradeLedgerTables'.
99- , takeHandleSnapshot :: ! (l EmptyMK -> String -> m CRC )
99+ , takeHandleSnapshot :: ! (l EmptyMK -> String -> m ( Maybe CRC ) )
100100 , tablesSize :: ! (m (Maybe Int ))
101101 -- ^ Consult the size of the ledger tables in the database. This will return
102102 -- 'Nothing' in backends that do not support this operation.
You can’t perform that action at this time.
0 commit comments