-
Notifications
You must be signed in to change notification settings - Fork 504
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 zero from field in Tx #719
Conversation
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.
Looks great 💯
I would just like to note that this issue was present even before we upgraded our consensus layer - the previous IBFT implementation (incorrectly) had a side effect of instantiating the From
field of a transaction when verifying a block (even though it was not set), something that no normal consensus implementation should do. The new IBFT implementation doesn't do any such shenanigans, so this error propagated out (the transaction From
not being marshaled in RLP) to other parts of the system.
Just make sure to resolve the linting errors.
Thank you for fixing this 🙏
Codecov Report
@@ Coverage Diff @@
## release/0.5.1 #719 +/- ##
================================================
Coverage ? 52.56%
================================================
Files ? 130
Lines ? 17108
Branches ? 0
================================================
Hits ? 8993
Misses ? 7470
Partials ? 645 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
LGTM
4579772
to
cf75013
Compare
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.
Looks good again 💯
Fix EDGE-787
Description
This PR fixes the issue that
from
field in the transaction data JSON-RPC API returns is zero address in the latest code. The issue is caused by that block data is unmarshalled before writing block in latest IBFT and this encoding doesn't addfrom
field in the marshaled data.This PR adds 2 fixes:
(1) Recover
from
field in transaction in blockchain module before writing the block into storage.(2) Recover
from
field if the transaction in the block doesn't havefrom
field when fetching block from storage and update the data in storage as well.Relevant issue:
#684
Changes include
Breaking changes
Please complete this section if any breaking changes have been made, otherwise delete it
Checklist
Testing
Manual tests
Please complete this section if you ran manual tests for this functionality, otherwise delete it
Documentation update
Please link the documentation update PR in this section if it's present, otherwise delete it
Additional comments
Please post additional comments in this section if you have them, otherwise delete it