Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
EVM: SSTORE/SLOAD gas costs split into processing and storage costs #142
Split the specified gas cost of
i.e. setting to non-zero from zero is a total of 20000, while setting to zero is a refund of 10000. (No change here to current behaviour)
Based on the Merkle Patricia Tree Specification, inserts and lookups should be the same complexity.
Making this split now will be beneficial when blockchain rent needs to define the rent figures as opposed to the processing costs.
The figures above are given as a starting point for discussion. The specification on trie complexity might be entirely off and that invalidates the above.
Based on the Yellow Paper, the processing fee is 5000 gas for SSTORE, because:
Is there a sensible way to split up the 5000 to processing and storage costs?