-
Notifications
You must be signed in to change notification settings - Fork 844
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 debug_traceCall to handle underpriced transactions #7510
Conversation
Signed-off-by: 7suyash7 <[email protected]>
@@ -69,6 +70,44 @@ protected TraceOptions getTraceOptions(final JsonRpcRequestContext requestContex | |||
} | |||
} | |||
|
|||
protected Object resultByBlockHeader( |
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 method doesn't appear to be used anywhere in DebugTraceCall
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.
Hi, yeah, I just removed it, I also removed the errorResponse
method. Weirdly, the compiler caught that errorResponse
was not being used anywhere when I tried compiling and building after removing resultByBlockHeader
right now but didn't catch resultByBlockHeader
...
Signed-off-by: 7suyash7 <[email protected]>
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 fix the issue with debug_traceCall
, but since it part of a group of RPC methods extending the AbstractTraceByBlock
class, it is better to review if the issue affects other methods in the group, and compare the behavior with other clients to be sure there are not other differences.
@fab-10 What do you expect the next steps to be here? |
@7suyash7 first I suggest to review if |
Hi, @fab-10, Here is the output from each one of them:
Let me know if you need further information or want me to conduct additional tests. |
Thanks @7suyash7 for checking, I think that is enough and the change can be limited to this call, could you just add a test case and a changelog entry to complete the fix? |
Signed-off-by: 7suyash7 <[email protected]>
Signed-off-by: Fabio Di Fabio <[email protected]>
LGTM |
Fixes: #7503 where
debug_traceCall
was failing due to gas price checks, whileeth_call
was succeeding.Output from
debug_traceCall