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

Update protos to recent CometBFT in main, with RFC 106 and skip_extension_signing #17

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mzabaluev
Copy link
Contributor

@mzabaluev mzabaluev commented Mar 4, 2024

Since CometBFT 1.0.0-alpha.1, there were a couple of significant changes to proto files:

  1. GetLatest* methods were removed from the data companion API as per RFC 106.
  2. A skip_extension_signing flag was added to cometbft.privval.v1.

Regenerate cometbft-proto from a recent cometbft commit that includes the changes.

  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Added entry in .changelog/

Since CometBFT 1.0.0-alpha.1, there was one significant change:
GetLatest* methods were removed from the data companion API
as per RFC 106. Regenerate cometbft-proto from a recent cometbft commit that includes the changes.
NOTE: the default is set to true when converting from earlier version.
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 68.75000% with 5 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (main@03974f5). Click here to learn what that means.

❗ Current head c2fa281 differs from pull request most recent head da301d5. Consider uploading reports for the commit da301d5 to get more accurate results

Files Patch % Lines
cometbft/src/vote/sign_vote.rs 68.7% 5 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##             main     #17   +/-   ##
======================================
  Coverage        ?   57.1%           
======================================
  Files           ?     254           
  Lines           ?   27597           
  Branches        ?       0           
======================================
  Hits            ?   15771           
  Misses          ?   11826           
  Partials        ?       0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The cometbft.privval.v1.SignVoteRequest message had the recently added
sign_extension field renamed to skip_extension_signing.
Change the source commit and regenerate the protos.
The sign_extension field was renamed to skip_extension_signing
with flipped value semantics.
@mzabaluev mzabaluev changed the title Update protos to recent CometBFT in main, with RFC 106 Update protos to recent CometBFT in main, with RFC 106 and skip_extension_signing Mar 6, 2024
@romac romac marked this pull request as ready for review March 14, 2024 12:49
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