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

Fix incorrect decoding of MerkleProof #293

Merged
merged 2 commits into from
May 15, 2023
Merged

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented May 15, 2023

Part of spacemeshos/go-spacemesh#4386.

This fixes the incorrect implementation of the DecodeScale method of MerkleProof.

Do not merge before: spacemeshos/go-scale#56

@fasmat fasmat requested review from dshulyak, poszu and countvonzero May 15, 2023 19:53
@fasmat fasmat self-assigned this May 15, 2023
@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Merging #293 (be16ab6) into develop (8295d13) will not change coverage.
The diff coverage is 40.0%.

@@           Coverage Diff           @@
##           develop    #293   +/-   ##
=======================================
  Coverage     69.7%   69.7%           
=======================================
  Files           18      18           
  Lines         1524    1524           
=======================================
  Hits          1063    1063           
  Misses         350     350           
  Partials       111     111           
Impacted Files Coverage Δ
shared/shared.go 75.4% <40.0%> (ø)

Copy link
Contributor

@countvonzero countvonzero left a comment

Choose a reason for hiding this comment

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

title of this PR is a little strange. unclear which fuzzing test you are fixing.

@fasmat fasmat changed the title Fix failing fuzzing test Fix incorrect decoding of MerkleProof May 15, 2023
@fasmat fasmat merged commit dd331b5 into develop May 15, 2023
@fasmat fasmat deleted the fix-decoding-of-merkleproof branch May 15, 2023 21:42
bors bot pushed a commit to spacemeshos/go-spacemesh that referenced this pull request May 15, 2023
## Motivation
Closes #4386 

Do not merge before spacemeshos/poet#293

## Changes
This adds a regression test for the fix in spacemeshos/poet#293. In `poet` the same is tested via fuzzing.

## Test Plan
n/a

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed

## DevOps Notes
<!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases -->
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
- [x] This PR does not affect public APIs
- [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
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.

2 participants