Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Conversation

@edmundnoble
Copy link
Contributor

No description provided.

main/Main.hs Outdated
, _configStratumInterface = "*"
, _configStratumDifficulty = Stratum.WorkDifficulty
, _configStratumRate = 1000
, _configBlockTime = 30
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, the name could be misleading for users. What about renaming into _configConstantDelayBlockTime, to indicate that it is used (only) by the constant delay worker.

main/Main.hs Outdated
<> long "stratum-rate"
<> help "Rate (in milliseconds) at which a stratum worker thread emits jobs."
<*< configBlockTime .:: option auto
% long "block-time"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename into constant-delay-block-time?

main/Main.hs Outdated
, "stratumInterface" .= _configStratumInterface c
, "stratumDifficulty" .= _configStratumDifficulty c
, "stratumRate" .= _configStratumRate c
, "blockTime" .= _configBlockTime c
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename into "constantDelayBlockTime"?

@larskuhtz
Copy link
Contributor

Could you also update the README.md to include the new options?

@edmundnoble edmundnoble force-pushed the edmund/constant-delay-worker branch from 69c9a55 to c94ac08 Compare December 13, 2022 18:43
@edmundnoble edmundnoble force-pushed the edmund/constant-delay-worker branch from c94ac08 to 3265836 Compare December 13, 2022 18:43
@larskuhtz larskuhtz merged commit c6a7509 into master Dec 14, 2022
@larskuhtz larskuhtz deleted the edmund/constant-delay-worker branch December 14, 2022 17:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants