-
Notifications
You must be signed in to change notification settings - Fork 473
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
API: Fix prove bug on API #3632
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3632 +/- ##
==========================================
+ Coverage 48.11% 48.13% +0.02%
==========================================
Files 381 381
Lines 62214 62217 +3
==========================================
+ Hits 29933 29951 +18
+ Misses 28848 28837 -11
+ Partials 3433 3429 -4
Continue to review full report at Codecov.
|
s, _, _ := blk.DecodeSignedTxn(blk.Payset[i]) | ||
t.Log(s.Txn.ID()) | ||
} | ||
t.FailNow() |
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.
I think that the intent here is correct - but you should log more useful information that would help you to debug the issue further.
In particular, I'd suggest dumping the entire confirmedTx
( which includes the block number ), as well as the entire block.
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.
thanks for the advice
fcd76d2
to
a1f81db
Compare
a1f81db
to
349b0be
Compare
2a6e9f3
to
e8002dc
Compare
e8002dc
to
d5d2d3e
Compare
c27da92
to
1c92a95
Compare
Summary
This PR fixes a bug on algod's API. When a tree contains a missing child (not a full tree), the api handler omits this from the proof response and leads to a root mismatch
Test Plan
Add unit tests as well as convert the e2e to test this edge case.