Skip to content

Commit 7baf712

Browse files
committed
Update to newer LSM options format
1 parent cce84c1 commit 7baf712

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

cabal.project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ source-repository-package
144144
source-repository-package
145145
type: git
146146
location: https://github.com/IntersectMBO/cardano-config
147-
tag: 200f0333a352718152315a712dfc1f39b7ed5e4a
148-
--sha256: sha256-YgVaOMt6Vjqg9pg10ovsXOJvV5dRmOCjIoQJOs5zjbU=
147+
tag: 146fae3b13ad13a72a72ca9792a8a44ef5076b52
148+
--sha256: sha256-M+LYeNr30ng261MnjwOURcWe1Gajn8T4YArAUf3XyRY=
149149

150150
source-repository-package
151151
type: git

cardano-node/src/Cardano/Node/Configuration/CardanoConfigAdapter.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,8 @@ cardanoConfigToPartialNodeConfiguration cfg =
258258

259259
fromCfgBackend :: Cfg.LedgerDbBackendSelector -> LedgerDbSelectorFlag
260260
fromCfgBackend Cfg.V2InMemory = V2InMemory
261-
-- The node's 'V2LSM' only carries the database path; cardano-config's extra
262-
-- export path has no node counterpart and is dropped here.
263-
fromCfgBackend (Cfg.V2LSM dbPath _exportPath) = V2LSM (strictMaybeToMaybe dbPath)
261+
fromCfgBackend (Cfg.V2LSM dbPath exportPath) =
262+
V2LSM (strictMaybeToMaybe dbPath) (strictMaybeToMaybe exportPath)
264263

265264
-- cardano-config's 'GenesisConfigFlags' mirrors the node's field-for-field,
266265
-- except 'gcfCSJJumpSize' is a raw 'Word64' there vs a 'SlotNo' here, and the

0 commit comments

Comments
 (0)