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

Remove ClientType func and update consensus state path #7573

Merged
merged 12 commits into from
Oct 19, 2020
Merged

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented Oct 16, 2020

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.

  • 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

@colin-axner colin-axner added x/ibc Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. labels Oct 16, 2020
@codecov
Copy link

codecov bot commented Oct 16, 2020

Codecov Report

Merging #7573 into master will decrease coverage by 0.14%.
The diff coverage is 66.66%.

@@            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     

@colin-axner colin-axner added the A:automerge Automatically merge PR once all prerequisites pass. label Oct 16, 2020
Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

ACK, thanks

@mergify mergify bot merged commit 0f8fdf6 into master Oct 19, 2020
@mergify mergify bot deleted the colin/ibc-fix branch October 19, 2020 09:59
clevinson pushed a commit that referenced this pull request Oct 29, 2020
* 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)
Copy link
Collaborator

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.

Copy link
Contributor Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants