Skip to content

abci++: add proto fields for enabling vote extensions#8587

Merged
mergify[bot] merged 24 commits intomasterfrom
wb/extensions-proto
May 23, 2022
Merged

abci++: add proto fields for enabling vote extensions#8587
mergify[bot] merged 24 commits intomasterfrom
wb/extensions-proto

Conversation

@williambanfield
Copy link
Contributor

@williambanfield williambanfield commented May 20, 2022

This pull requests adds the protocol buffer field for the ABCI.VoteExtensionsEnableHeight parameter. This proto field is threaded throughout all of the relevant places where consensus params are used and referenced.

This PR also adds validation of the consensus param updates. Previous consensus param changes didn't depend on previous versions of the params, so this change adds a method for validating against the old params as well.

closes: #8453

// vote extensions will be enabled. During this specified height, and for all
// subsequent heights, precommit messages that do not contain valid extension data
// will be considered invalid. Prior to this height, vote extensions will not
// be used or accepted by validators on the network.
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a sentence clarifying that PrepareProposal won't accept extension at that particular height?

@williambanfield williambanfield added the S:automerge Automatically merge PR when requirements pass label May 23, 2022
params.ABCI.VoteExtensionsEnableHeight, h)
}
if params.ABCI.VoteExtensionsEnableHeight <= h {
return fmt.Errorf("VoteExtensionsEnableHeight cannot be updated modified once"+
Copy link
Contributor

@sergio-mena sergio-mena May 23, 2022

Choose a reason for hiding this comment

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

Suggested change
return fmt.Errorf("VoteExtensionsEnableHeight cannot be updated modified once"+
return fmt.Errorf("VoteExtensionsEnableHeight cannot be modified once "+

@mergify mergify bot merged commit 43313e9 into master May 23, 2022
@mergify mergify bot deleted the wb/extensions-proto branch May 23, 2022 18:23
@cmwaters cmwaters mentioned this pull request Oct 24, 2022
3 tasks
cmwaters pushed a commit that referenced this pull request Nov 15, 2022
This pull requests adds the protocol buffer field for the `ABCI.VoteExtensionsEnableHeight` parameter. This proto field is threaded throughout all of the relevant places where consensus params are used and referenced.

This PR also adds validation of the consensus param updates. Previous consensus param changes didn't depend on _previous_ versions of the params, so this change adds a method for validating against the old params as well.

closes: #8453
sergio-mena pushed a commit that referenced this pull request Nov 28, 2022
This pull requests adds the protocol buffer field for the `ABCI.VoteExtensionsEnableHeight` parameter. This proto field is threaded throughout all of the relevant places where consensus params are used and referenced.

This PR also adds validation of the consensus param updates. Previous consensus param changes didn't depend on _previous_ versions of the params, so this change adds a method for validating against the old params as well.

closes: #8453
sergio-mena pushed a commit that referenced this pull request Nov 30, 2022
…#8587)

This pull requests adds the protocol buffer field for the `ABCI.VoteExtensionsEnableHeight` parameter. This proto field is threaded throughout all of the relevant places where consensus params are used and referenced.

This PR also adds validation of the consensus param updates. Previous consensus param changes didn't depend on _previous_ versions of the params, so this change adds a method for validating against the old params as well.

closes: #8453
sergio-mena pushed a commit that referenced this pull request Dec 9, 2022
…#8587)

This pull requests adds the protocol buffer field for the `ABCI.VoteExtensionsEnableHeight` parameter. This proto field is threaded throughout all of the relevant places where consensus params are used and referenced.

This PR also adds validation of the consensus param updates. Previous consensus param changes didn't depend on _previous_ versions of the params, so this change adds a method for validating against the old params as well.

closes: #8453
sergio-mena added a commit that referenced this pull request Dec 13, 2022
* [cherry-picked] abci++: add proto fields for enabling vote extensions (#8587)

This pull requests adds the protocol buffer field for the `ABCI.VoteExtensionsEnableHeight` parameter. This proto field is threaded throughout all of the relevant places where consensus params are used and referenced.

This PR also adds validation of the consensus param updates. Previous consensus param changes didn't depend on _previous_ versions of the params, so this change adds a method for validating against the old params as well.

closes: #8453

* Re-sync some things with original patch

* fixes

* Remove 'Skip' from TestApp_VoteExtensions

* Fix all unit tests

* Appease linter

* Update types/params.go

Co-authored-by: Thane Thomson <connect@thanethomson.com>

Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com>
Co-authored-by: Thane Thomson <connect@thanethomson.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S:automerge Automatically merge PR when requirements pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toggle VoteExtensions using a consensus parameter

3 participants