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

tendermint-proto: Add a feature flag and generate gRPC server definitions #1137

Merged
merged 1 commit into from
Jun 11, 2022

Conversation

tomtau
Copy link
Contributor

@tomtau tomtau commented May 30, 2022

  • 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/

…ions

- `proto-compiler` uses `tonic-build`
- tendermint-proto can be compiled with std for the `grpc` feature
(as required by the generated `tonic` code)
- the primary motivation is the new gRPC-based PrivVal interface
in Tendermint 0.35
(see informalsystems#1134)
@codecov-commenter
Copy link

Codecov Report

Merging #1137 (1fdd02d) into master (cd3e391) will increase coverage by 0.0%.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #1137   +/-   ##
======================================
  Coverage    64.7%   64.7%           
======================================
  Files         231     231           
  Lines       15637   15637           
======================================
+ Hits        10121   10122    +1     
+ Misses       5516    5515    -1     
Impacted Files Coverage Δ
proto/src/lib.rs 100.0% <ø> (ø)
testgen/src/commit.rs 91.3% <0.0%> (+0.6%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd3e391...1fdd02d. Read the comment docs.

@tony-iqlusion
Copy link
Collaborator

@thanethomson +1 on this. It would unblock gRPC work on TMKMS

tomtau added a commit to tomtau/tendermint-rs that referenced this pull request Jun 10, 2022
a proposed follow-up after
informalsystems#1137
is merged.
ref: informalsystems#1134
@tomtau tomtau mentioned this pull request Jun 10, 2022
5 tasks
Copy link
Contributor

@thanethomson thanethomson left a comment

Choose a reason for hiding this comment

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

Sorry for the delayed review, I've been on vacation and traveling and have only had a chance to review this now. This is excellent, thanks @tomtau! 🎉

@thanethomson thanethomson merged commit cc70ad1 into informalsystems:master Jun 11, 2022
@tomtau
Copy link
Contributor Author

tomtau commented Jun 13, 2022

thanks @thanethomson , this unblocks some of the Tendermint 0.35 support work.
I also posted a proposal for follow up PRs: #1142 (rendered).
Could you take a look at it? I'm happy to either upstream the work for it or if it doesn't fit the goals of tendermint-rs, close the issue and do it outside of tendermint-rs.

tony-iqlusion pushed a commit that referenced this pull request Nov 10, 2022
Adds a "grpc" feature to the crate along with gRPC server definitions
for the "privval" interface used by e.g. TMKMS to support remote
signing.

These were originally added in #1137 but lost in the shuffle of
Tendermint v0.35-related changes.

They have been updated to use `tonic` v0.8, which the `tendermint-proto`
crate updated to after the original #1137 PR landed.
tony-iqlusion pushed a commit that referenced this pull request Nov 10, 2022
Adds a "grpc" feature to the crate along with gRPC server definitions
for the "privval" interface used by e.g. TMKMS to support remote
signing.

These were originally added in #1137 but lost in the shuffle of
Tendermint v0.35-related changes.

They have been updated to use `tonic` v0.8, which the `tendermint-proto`
crate updated to after the original #1137 PR landed.
tony-iqlusion pushed a commit that referenced this pull request Nov 10, 2022
Adds a "grpc" feature to the crate along with gRPC server definitions
for the "privval" interface used by e.g. TMKMS to support remote
signing.

These were originally added in #1137 but lost in the shuffle of
Tendermint v0.35-related changes.

They have been updated to use `tonic` v0.8, which the `tendermint-proto`
crate updated to after the original #1137 PR landed.
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.

4 participants