-
Notifications
You must be signed in to change notification settings - Fork 759
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
VMOpts#activatePrecompiles behavior and doc #575
Comments
Yeah, I've also been curious about that one. Just did a search and found these: #65 and trufflesuite/ganache#88. Not sure I fully got the context or whether this is still a valid use-case. We should verify if anything changes when the flag is true, this includes gas costs of the tx and details of the account created for the precompile. I also wonder if this is somehow related: |
Forgot to comment here. Those links were super useful @s1na . The difference between activating or not the precompiles is that if you don't the first time you call each of them is a little more expensive because of the account creation cost. |
Was trying to figure out where this account creation cost is coming from. It's here: I guess that's why in genesis states they put accounts with a balance of 1, so the account exists. |
Maybe we can rename it to |
I'm opening this issue because I find
VMOpts#activatePrecompiles
very confusing.I'd expect that if it was
false
, the precompiles wouldn't work, and their accounts would be normal (empty) accounts instead. This is not the case, and they work despite the value ofVMOpts#activatePrecompiles
.What is this param for?
It's only used here:
which just sets them as empty accounts.
The text was updated successfully, but these errors were encountered: