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

Migrate Consensus State to being proto encoded/decoded in 02-client #6960

Merged
merged 5 commits into from
Aug 6, 2020

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented Aug 6, 2020

Description

Proto encodes consensus state in 02-client. Removes amino from client keeper and connection keeper. ConsensusState is now being passed around by reference. Genesis migration will ocurr in #6878

ref: #6254


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@codecov
Copy link

codecov bot commented Aug 6, 2020

Codecov Report

Merging #6960 into master will increase coverage by 3.55%.
The diff coverage is 57.14%.

@@            Coverage Diff             @@
##           master    #6960      +/-   ##
==========================================
+ Coverage   62.10%   65.65%   +3.55%     
==========================================
  Files         519      389     -130     
  Lines       31990    24168    -7822     
==========================================
- Hits        19866    15867    -3999     
+ Misses      10513     7061    -3452     
+ Partials     1611     1240     -371     

@colin-axner colin-axner marked this pull request as ready for review August 6, 2020 10:59
@@ -124,31 +124,31 @@ func QueryTendermintHeader(clientCtx client.Context) (ibctmtypes.Header, int64,

// QueryNodeConsensusState takes a client context and returns the appropriate
// tendermint consensus state
func QueryNodeConsensusState(clientCtx client.Context) (ibctmtypes.ConsensusState, int64, error) {
func QueryNodeConsensusState(clientCtx client.Context) (*ibctmtypes.ConsensusState, int64, error) {
Copy link
Contributor Author

@colin-axner colin-axner Aug 6, 2020

Choose a reason for hiding this comment

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

we can refactor querier to grpc in a followup

Copy link
Collaborator

Choose a reason for hiding this comment

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

can you open an issue?

@@ -124,31 +124,31 @@ func QueryTendermintHeader(clientCtx client.Context) (ibctmtypes.Header, int64,

// QueryNodeConsensusState takes a client context and returns the appropriate
// tendermint consensus state
func QueryNodeConsensusState(clientCtx client.Context) (ibctmtypes.ConsensusState, int64, error) {
func QueryNodeConsensusState(clientCtx client.Context) (*ibctmtypes.ConsensusState, int64, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you open an issue?

@fedekunze fedekunze merged commit 0e4d676 into master Aug 6, 2020
@fedekunze fedekunze deleted the colin/migrate-constate-in-client branch August 6, 2020 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants