@@ -256,7 +256,7 @@ data Config = Config
256256 , _configStratumInterface :: ! HostPreference
257257 , _configStratumDifficulty :: ! Stratum. StratumDifficulty
258258 , _configStratumRate :: ! Natural
259- , _configBlockTime :: ! Natural
259+ , _configConstantDelayBlockTime :: ! Natural
260260 }
261261 deriving (Show , Eq , Ord , Generic )
262262
@@ -279,7 +279,7 @@ defaultConfig = Config
279279 , _configStratumInterface = " *"
280280 , _configStratumDifficulty = Stratum. WorkDifficulty
281281 , _configStratumRate = 1000
282- , _configBlockTime = 30
282+ , _configConstantDelayBlockTime = 30
283283 }
284284
285285instance ToJSON Config where
@@ -299,7 +299,7 @@ instance ToJSON Config where
299299 , " stratumInterface" .= _configStratumInterface c
300300 , " stratumDifficulty" .= _configStratumDifficulty c
301301 , " stratumRate" .= _configStratumRate c
302- , " blockTime " .= _configBlockTime c
302+ , " constantDelayBlockTime " .= _configConstantDelayBlockTime c
303303 ]
304304
305305instance FromJSON (Config -> Config ) where
@@ -319,7 +319,7 @@ instance FromJSON (Config -> Config) where
319319 <*< configStratumInterface ..: " stratumInterface" % o
320320 <*< configStratumDifficulty ..: " stratumDifficulty" % o
321321 <*< configStratumRate ..: " stratumRate" % o
322- <*< configBlockTime ..: " blockTime " % o
322+ <*< configConstantDelayBlockTime ..: " constantDelayBlockTime " % o
323323 where
324324 parseLogLevel = withText " LogLevel" $ return . logLevelFromText
325325
@@ -383,8 +383,8 @@ parseConfig = id
383383 % short ' s'
384384 <> long " stratum-rate"
385385 <> help " Rate (in milliseconds) at which a stratum worker thread emits jobs."
386- <*< configBlockTime .:: option auto
387- % long " block-time"
386+ <*< configConstantDelayBlockTime .:: option auto
387+ % long " constant-delay- block-time"
388388 <> help " time at which a constant-delay worker emits blocks"
389389
390390-- -------------------------------------------------------------------------- --
@@ -829,7 +829,7 @@ run conf logger = do
829829 rng <- MWC. createSystemRandom
830830 f $ \ l -> simulationWorker l rng workerRate
831831 ConstantDelayWorker -> do
832- f $ \ l -> constantDelayWorker l (_configBlockTime conf)
832+ f $ \ l -> constantDelayWorker l (_configConstantDelayBlockTime conf)
833833 ExternalWorker -> f $ \ l -> externalWorker l (_configExternalWorkerCommand conf)
834834 CpuWorker -> f $ cpuWorker @ Blake2s_256
835835 StratumWorker -> Stratum. withStratumServer
0 commit comments