Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add defaultTargetBlocksPerSecond #1473

Merged
merged 2 commits into from
Feb 1, 2021
Merged

Conversation

someone235
Copy link
Collaborator

No description provided.

Comment on lines 45 to 47
cfg := &configFlags{
RPCServer: defaultRPCServer,
RPCServer: defaultRPCServer,
TargetBlocksPerSecond: defaultTargetBlocksPerSecond,
Copy link
Member

Choose a reason for hiding this comment

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

Can we instead use 2 * cfg.ActiveNetParams.TargetTimePerBlock?
(should also probably convert TargetBlocksPerSecond to a pointer so we can differentiate not specified from 0, unless we want to say that 0=default and if you want to disable just pass a very big number)

@elichai elichai merged commit 331042e into v0.9.0-dev Feb 1, 2021
@elichai elichai deleted the defaultTargetBlocksPerSecond branch February 1, 2021 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants