-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Remove ClientType func and update consensus state path #7573
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7573 +/- ##
==========================================
- Coverage 54.30% 54.16% -0.15%
==========================================
Files 454 606 +152
Lines 30448 38164 +7716
==========================================
+ Hits 16536 20671 +4135
- Misses 12287 15398 +3111
- Partials 1625 2095 +470 |
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.
ACK, thanks
* update paths and remove unused func * fix bug Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Christopher Goes <cwgoes@pluranimity.org> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
// ConsensusStatePath takes an Identifier and returns a Path under which to | ||
// store the consensus state of a client. | ||
func ConsensusStatePath(height exported.Height) string { | ||
return fmt.Sprintf("consensusState/%s", height) | ||
return fmt.Sprintf("%s/%s", KeyConsensusStatesPrefix, height) |
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.
There is a bug here, and surprised it wasn't flagged by the linters.
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.
not sure I follow. What is the bug?
Description
Sets the consensus state path to match the ICS spec recommendations. Removes unused ClientType func.
closes: #XXXX
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