-
Notifications
You must be signed in to change notification settings - Fork 569
Problem: traceTransaction fails for succesful tx #720
Conversation
Solution: - Change the context to the begining of the block, rather than the end of it, while override block context to correct one pass predecessors pass current block information to grpc query
b67273d
to
7233abb
Compare
This PR fixes important issues. LGTM! 🚀 |
Codecov Report
@@ Coverage Diff @@
## main #720 +/- ##
==========================================
+ Coverage 56.36% 56.56% +0.20%
==========================================
Files 64 64
Lines 5715 5776 +61
==========================================
+ Hits 3221 3267 +46
- Misses 2300 2309 +9
- Partials 194 200 +6
|
Do you have a way to test this works? |
We ported the fix to 0.7.2 here: https://github.com/crypto-org-chain/ethermint/releases/tag/v0.7.2-cronos20211105, and verified on our mainnet dry-run, at least exiting known cases are all fixed by this. But yes, it would be good to have some integrated testing. |
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.
Minor comments. Please also add a test case
for i, tx := range req.Predecessors { | ||
ethTx := tx.AsTransaction() | ||
msg, err := ethTx.AsMessage(signer, baseFee) | ||
if err != nil { |
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.
this error should be logged
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.
^^
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
for i, tx := range req.Predecessors { | ||
ethTx := tx.AsTransaction() | ||
msg, err := ethTx.AsMessage(signer, baseFee) | ||
if err != nil { |
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.
^^
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
…to fix-tracetx-context
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.
ACK, minor logger comments
Co-authored-by: Freddy Caceres <freddy.caceres@crypto.com> Co-authored-by: crypto-facs <84574577+crypto-facs@users.noreply.github.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Freddy Caceres <freddy.caceres@crypto.com> Co-authored-by: crypto-facs <84574577+crypto-facs@users.noreply.github.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Description
Solution:
of it
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)