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

feat(pd)!: migrate to cometbft v0.37 #3115

Merged
merged 1 commit into from
Sep 29, 2023
Merged

feat(pd)!: migrate to cometbft v0.37 #3115

merged 1 commit into from
Sep 29, 2023

Conversation

conorsch
Copy link
Contributor

@conorsch conorsch commented Sep 28, 2023

Bumps the rust imports for tendermint-rs and tower-abci to use the v037, rather than v034, modules. The substantive change is the addition of two new ABCI event types:

  • PrepareProposal
  • ProcessProposal

The consensus logic has been updated according to spec [0].

Refs #2263.

[0] https://github.com/cometbft/cometbft/blob/v0.37.2/spec/abci/abci%2B%2B_comet_expected_behavior.md#adapting-existing-applications-that-use-abci

@conorsch conorsch temporarily deployed to smoke-test September 29, 2023 15:59 — with GitHub Actions Inactive
@conorsch conorsch temporarily deployed to smoke-test September 29, 2023 16:51 — with GitHub Actions Inactive
@@ -81,6 +81,10 @@ impl Consensus {
.await
.expect("commit must succeed"),
),
// The proposal types were added in CometBFT v0.37.x.
// How should they be handled in narsil?
Copy link
Member

Choose a reason for hiding this comment

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

The same way as we do in the main application. This can be done later

Copy link
Member

@erwanor erwanor left a comment

Choose a reason for hiding this comment

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

Nice work!

Bumps the rust imports for tendermint-rs and tower-abci to use the v037,
rather than v034, modules. The substantive change is the addition of two
new ABCI event types:

  * PrepareProposal
  * ProcessProposal

The consensus logic has been updated according to spec [0].

Refs #2263.

[0] https://github.com/cometbft/cometbft/blob/v0.37.2/spec/abci/abci%2B%2B_comet_expected_behavior.md#adapting-existing-applications-that-use-abci
@conorsch conorsch marked this pull request as ready for review September 29, 2023 18:59
@conorsch conorsch temporarily deployed to smoke-test September 29, 2023 18:59 — with GitHub Actions Inactive
@conorsch conorsch merged commit 72f9f19 into main Sep 29, 2023
@conorsch conorsch deleted the 2263-cometbft-37 branch September 29, 2023 19:47
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