-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(abci): move timeout_commit
into FinalizeBlockResponse
#22
base: bera-v1.x
Are you sure you want to change the base?
feat(abci): move timeout_commit
into FinalizeBlockResponse
#22
Conversation
…bft#3089) as `next_block_delay` ADR-115: cometbft#2966 Closes cometbft#2655 --- - [ ] ~~Tests written/updated~~ - [x] Changelog entry added in `.changelog` (we use [unclog](https://github.com/informalsystems/unclog) to manage our changelog) - [x] Updated relevant documentation (`docs/` or `spec/`) and code comments - [x] Title follows the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec --------- Co-authored-by: Sergio Mena <[email protected]>
239aa3f
to
175a808
Compare
// though we already have +2/3). | ||
// NOTE: when modifying, make sure to update time_iota_ms genesis parameter | ||
// Set to 0 if you want to make progress as soon as the node has all the precommits. | ||
// Deprecated: use `next_block_delay` in the ABCI application's `FinalizeBlockResponse`. | ||
TimeoutCommit time.Duration `mapstructure:"timeout_commit"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would leave these docs (with the "Deprecated:..." line as well), because in internal/consensus/state.go
we set it if NextBlockDelay
isn't set, and we also check its value when setting skipTimeoutCommit
.
So someone might still want to know what this legacy value is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The more we diverge from the upstream v1.x, the harder it will be to keep up with it.
# How long we wait after committing a block, before starting on the new | ||
# height (this gives us a chance to receive some more precommits, even | ||
# though we already have +2/3). | ||
# Set to 0 if you want to make progress as soon as the node has all the precommits. | ||
# Deprecated: use `next_block_delay` in the ABCI application's `FinalizeBlockResponse`. | ||
timeout_commit = "{{ .Consensus.TimeoutCommit }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above about the docs.
Port of cometbft#3089