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 cli option --block-authoring-duration #2726

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

librelois
Copy link
Collaborator

What does it do?

Depending on the performance of a collator, it can happen that a collator fits more computing weight in a block than a validator is able to process, causing the collator to fail to produce blocks and get the rewards.

This PR add an option to the command line client --block-authoring-duration that accepts a positive integer representing the amount of time in milliseconds that the client has to produce a block.

The value for the block time limit is bounded between 250 and 2000 (0.25s to 2s) with default to 1.5s.

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@RomarQ RomarQ added B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes D3-trivial PR contains trivial changes in a runtime directory that do not require an audit labels Mar 27, 2024
Copy link
Contributor

Coverage Report

@@                  Coverage Diff                  @@
##           master   elois-cli-deadline     +/-   ##
=====================================================
  Coverage   72.51%               72.51%   0.00%     
  Files         229                  229             
  Lines       70565                70565             
=====================================================
  Hits        51164                51164             
  Misses      19401                19401             
Files Changed Coverage

Coverage generated Wed Mar 27 12:40:24 UTC 2024

@RomarQ RomarQ added the not-breaking Does not need to be mentioned in breaking changes label Mar 27, 2024
@librelois librelois merged commit 2187a05 into master Mar 28, 2024
28 of 33 checks passed
@librelois librelois deleted the elois-cli-deadline branch March 28, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes D3-trivial PR contains trivial changes in a runtime directory that do not require an audit not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants