forked from cometbft/cometbft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Post-merge fixes for feature/proto-upgrade
proto: copy latest changes in CometBFT 0.38 Replicate protobuf changes made for CometBFT 0.38.0 into the appropriate versions of cometbft.* packages. This only touches existing packages, not the newly added service packages which already have versioning in the main branch. proto: replicate services.* packages to cometbft Copy over the definitions from tendermint packages to cometbft namespace and rename references. The versioning for the proto packages themselves is already done in the main branch. proto: redefine RequestExtendVote in abci.v4 Need to change a field to v4.Misbehavior. api: regenerate *.pb.go files from protobuf Regenerate api. Change the RequestExtendVote alias to point to v4 package. Add aliases for HasProposalBlockPart. consensus: update msgs.go to main and fix imports consensus: update msgs_test.go to main consensus: use aliased consts in state_test.go grpc: fix import in BlockResultsService client Regenerate mocks. mempool: set the Type field in CheckTx request Rather than using the default which is now CHECK_TX_TYPE_UNKNOWN, pass the type explicitly. Before the enum normalization, the default value was the same as New. mempool: panic on unexpected type in ABCI CheckTx Backstop an unexpected value of RequestCheckTx.type with a panic rather than silently doing nothing. Small change to mempool test infra All RequestCheckTx created must have filed `Type` set changelog for the new CheckTx type field behavior Add the note that the Type field can no longer be omitted from the proto-generated RequestCheckTx struct, retroactively linked to the GitHub issue about enum renaming changes.
- Loading branch information
1 parent
ca85f82
commit 4316705
Showing
59 changed files
with
8,376 additions
and
852 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.changelog/unreleased/breaking-changes/736-proto-enum-rename.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
- `[abci]` Change the proto-derived enum type and constant aliases to the | ||
buf-recommended naming conventions taken up by the `abci/v4` proto package | ||
([\#736](https://github.com/cometbft/cometbft/issues/736)). | ||
- `[proto]` The `Type` enum field is now required to be set to a value other | ||
than the default `CHECK_TX_TYPE_UNKNOWN` for a valid `RequestCheckTx` | ||
([\#736](https://github.com/cometbft/cometbft/issues/736)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.