-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Conversation
Codecov Report
@@ 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 |
@@ -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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
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 #6878ref: #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.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes