-
Couldn't load subscription status.
- Fork 713
Add vm_error field for transactions in Block Replay #6575
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
base: develop
Are you sure you want to change the base?
Add vm_error field for transactions in Block Replay #6575
Conversation
|
Awesome! So we can assume any time there is a non-null vm-error string something went wrong, in my case we don't really care what went wrong, but can use the presence as a general failed indicator? |
Correct, the presence of vm_error signals a runtime error |
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!
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 agree with @Jiloc that some documentation is needed. Once it's added then I'll approve. Thanks!
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, just caught one typo
Co-authored-by: Brice <[email protected]>
|
|
Description
This patch improves the Block Replay endpoint by allowing it to returns the specific vm_error of a failed transaction.
A new test has been added and the TestRPC framework has been improved for allowing the addition of custom transactions in the tip block.
Applicable issues
Additional info (benefits, drawbacks, caveats)
Checklist
docs/rpc/openapi.yamlandrpc-endpoints.mdfor v2 endpoints,event-dispatcher.mdfor new events)clarity-benchmarkingrepobitcoin-tests.yml