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

Convert simple proof to ics23 proof #6390

Merged
merged 3 commits into from
Jun 10, 2020
Merged

Conversation

AdityaSripal
Copy link
Member

Description

Simple PR that builds off work in #6323
Converts the SimpleProof in rootmultistore toics23.CommitmentProof
ProofRuntime now relies solely on CommitmentProof

closes: #5842


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

@codecov
Copy link

codecov bot commented Jun 10, 2020

Codecov Report

Merging #6390 into master will decrease coverage by 4.26%.
The diff coverage is 71.65%.

@@            Coverage Diff             @@
##           master    #6390      +/-   ##
==========================================
- Coverage   55.60%   51.33%   -4.27%     
==========================================
  Files         457      303     -154     
  Lines       27440    17098   -10342     
==========================================
- Hits        15257     8778    -6479     
+ Misses      11083     7738    -3345     
+ Partials     1100      582     -518     

@AdityaSripal AdityaSripal requested a review from cwgoes June 10, 2020 17:00
@@ -109,36 +109,6 @@ func TestVerifyMultiStoreQueryProof(t *testing.T) {
require.NotNil(t, err)
}

func TestVerifyMultiStoreQueryProofEmptyStore(t *testing.T) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Note proofs of empty stores no longer supported. Is this something we need?

cc: @alexanderbez @ethanfrey

Copy link
Contributor

Choose a reason for hiding this comment

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

Not for IBC at least. Maybe useful for some other application use-case?

Copy link
Collaborator

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

utACK

CHANGELOG.md Outdated Show resolved Hide resolved
store/rootmulti/store.go Outdated Show resolved Hide resolved
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.

utACK

@@ -109,36 +109,6 @@ func TestVerifyMultiStoreQueryProof(t *testing.T) {
require.NotNil(t, err)
}

func TestVerifyMultiStoreQueryProofEmptyStore(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not for IBC at least. Maybe useful for some other application use-case?

@fedekunze fedekunze merged commit e12fa58 into master Jun 10, 2020
@fedekunze fedekunze deleted the aditya/convert-simple-proof branch June 10, 2020 17:23
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.

Switch to ICS23-formatted Merkle proofs
3 participants