-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Repricing for trie-size-dependent opcodes (EIP1884) #1884
Conversation
I've started removing trailing whitespace, but soon stopped, seeing how it would touch too many lines.
Typos, styling, trailing whitespace, link EIP-150.
Thanks, I moved the assets now |
|
||
## Implementation | ||
|
||
Both these opcodes have been repriced before, and the client internals for managing reprices are already in place. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from a technical specification, it is the place to link to clients that have implemented the change.
EIPS/eip-1884.md
Outdated
@@ -0,0 +1,146 @@ | |||
--- | |||
eip: 1884 | |||
title: Opcode repricing for trie-size-dependent opcodes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The first 'Opcode' seems redundant here.
I afraid increasing SLOAD opcode gas cost may break some existing deployed smart contracts. They can perform limited gas subcalls, which will not fit after this change. |
Please leave this comment on the |
The reentrancy attacks are going to be crazy when this launches. I can't believe there wasnt more discussion on this. |
Why would this trigger reentrancy attacks? |
The gas price increase will effect fallback functions called when a contract receives ether. https://gist.github.com/ritzdorf/1c6bd72955391e831f8a397d3152b4e0
https://etherscan.io/tx/0x14a4a43b4e9759aac86bb0ae7e5926850406ff1c43ea571239563ff781474ae0 Based on this research I believe the gas price changes effecting previously deployed contracts is a mistake. |
But how does that relate to reentrancy attacks? |
Hello @holiman |
This EIP proposes repricing certain opcodes, to obtain a good balance between gas expenditure and resource consumption.