-
Notifications
You must be signed in to change notification settings - Fork 785
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
Exceptions that are not caused by the VM should terminate program execution #191
Comments
yeah this is really annoying err / vm-err is conflated here https://github.com/ethereumjs/ethereumjs-vm/blob/master/lib/runCode.js#L217 |
relevant old issue #117 |
Jared once made the following suggestion when we were chatting on Gitter:
@jwasinger: is this still up-to-date or do you have updated ideas on this? |
#222 is one step towards that (introduces |
@axic I think it would be better to keep the vm errors logically separate from programmatic errors. Any reasons not to settle this on one level higher and introduce a new Then one gets also more flexible to store the whole error with the stack trace. |
@holgerd77 now that #219 is merged it should be easy to change whatever needs to be changed to return |
Maybe that's not the case. @holgerd77 do you want to review |
@axic Yes, can do. |
Fixed by #307. |
Right now, all exceptions are caught and interpreted as errors within the EVM environment (i.e. out of gas). This causes a myriad of problems.
The text was updated successfully, but these errors were encountered: