File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
cardano-node/src/Cardano/Node/Configuration Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -436,9 +436,14 @@ instance FromJSON PartialNodeConfiguration where
436
436
(fmap RequestedNumOfDiskSnapshots <$> o .:? " NumOfDiskSnapshots" )
437
437
.!= DefaultNumOfDiskSnapshots
438
438
doChecksum <- (fmap Flag <$> o .:? " DoDiskSnapshotChecksum" ) .!= DoDiskSnapshotChecksum
439
- snapInterval <-
440
- (fmap (RequestedSnapshotInterval . secondsToDiffTime) <$> o .:? " SnapshotInterval" )
441
- .!= DefaultSnapshotInterval
439
+ snapInterval <- do
440
+ ov <- (fmap (RequestedSnapshotInterval . secondsToDiffTime) <$> o .:? " SnapshotInterval" ) .!= DefaultSnapshotInterval
441
+ case ov of
442
+ DefaultSnapshotInterval -> do
443
+ -- This is here just to ensure that we also try to read the SnapshotInterval from the toplevel config. as it was the case before UTxO-HD
444
+ -- It is needed for the pre-emptive cluster runs
445
+ (fmap (RequestedSnapshotInterval . secondsToDiffTime) <$> v .:? " SnapshotInterval" ) .!= DefaultSnapshotInterval
446
+ _ -> pure ov
442
447
qsize <-
443
448
(fmap RequestedQueryBatchSize <$> o .:? " QueryBatchSize" )
444
449
.!= DefaultQueryBatchSize
You can’t perform that action at this time.
0 commit comments