-
Notifications
You must be signed in to change notification settings - Fork 773
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
VM: Documentation (or advice) about getOpHandler
#554
Comments
Hello, that's great to hear! As you've noticed we've changed much of the internals of the VM (including the new The functionality you need mostly revolves around a flexible way for setting opcode handlers? |
@s1na Yes. At the moment we run a fork of the vm which modifies the LOG opcode because we insert event statements into solidity to do line/branch detection. And we're thinking about a new design that will use an in-process ethereum provider and listen to its vm step. Mainly we need to prevent our instrumentation of the code from distorting the 'true' gas costs of running a test because it's quite common for solidity developers to rely on internal gas metering to enforce certain conditions (like to stop tx queue jumping on exchanges). In sum:
|
@s1na So do you think we are ready for some final path towards a stable |
getOpHandler
getOpHandler
Superseeded by #1705, will close. |
Hello, looks like fantastic work is going here :)
I help maintain solidity-coverage and I'm interested in using the V4 Interpreter to manage our instrumentation & gas metering needs.
Questions
vm.setOpHandler(...)
?opFns
, preserving most of the current interpreter's behavior?Apologies in advance if these questions are confused about how the interpreter works, any advice at all would be very helpful. Thanks for all you're doing.
The text was updated successfully, but these errors were encountered: