-
Notifications
You must be signed in to change notification settings - Fork 72
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
soroban-rpc: simulateTransaction: try to return diagnostic events on failure #878
soroban-rpc: simulateTransaction: try to return diagnostic events on failure #878
Conversation
I have another PR that is targeting the current futurenet branch: AhaLabs#8 But it should log all simulation events. |
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.
all for this 👏 the more error feedback to clients, the better
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.
one tiny request, looks great otherwise.
ad63115
to
53021ae
Compare
Even if
host.invoke_host_function()
fails, leading to an error, we can collect and return diagnostic events.Note that this implies that the events field of the simulate transaction response can be set when an error is returned.
Also, sneak in some review feedback from #875 which I incorrectly pushed to this branch (sorry @tsachiherman )
(Found out about it in stellar/rs-soroban-env#1008 ).
@willemneal we should probably do the same in the CLI's snapshot mode (in case we don't do it already).