Skip to content
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

all: Add an error return value to NewEVM #19175

Closed
wants to merge 1 commit into from

Conversation

gballet
Copy link
Member

@gballet gballet commented Feb 27, 2019

With the introduction of EVMC some options passed during VM could make the process fail.

This introduces an error return value to NewEVM so that the VM creation doesn't have to panic. This is important, in case some instantiation during an RPC call (e.g. tracer) fails: we want the error to be reported to the RPC caller, while the main process (e.g. a full sync) continues.

@gballet
Copy link
Member Author

gballet commented Mar 18, 2019

We decided not to proceed with this, it is a requirement that all error-prone operations be made at startup time, before any call to NewEVM is performed.

@gballet gballet closed this Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant