-
Notifications
You must be signed in to change notification settings - Fork 19
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
Tune the cost of EXTCALL
with value
#94
Comments
How about also defining the retained gas not by a fixed number, but rather as i.e. "maximum cost of SSTORE * 1.5x" ? Also left this comment on #95. |
I reviewed the implementation of
So the conclusion is: if the value transfer in
In my opinion keeping the cost of 9000 is still slightly better than changing to 6700. |
Updated table. What do you think?
|
Posted the EIP update: ethereum/EIPs#8506 |
The "rough consensus" is not to change the 9000 value. |
There is the table comparing the gas and costs of all legacy and EOF calls.
Note that in legacy the additional value transfer cost in
CALL
is 6700 while inEXTCALL
this is 9000.This is because of how stipend is applied in legacy and how we do it in
EXTCALL
. I think it is just a coincidence and we should fix it.I.e. in legacy
CALL
the stipend gas (2300) is added from nowhere so the actual value transfer is 6700 not 9000. Try sending a value to an empty contract, you will get the 2300 back.In EOF we kinda implemented it properly so the cost is actually 9000.
The text was updated successfully, but these errors were encountered: