-
Notifications
You must be signed in to change notification settings - Fork 148
Instrument the SSTORE opcode #484
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
Conversation
a198204
to
d04692d
Compare
d04692d
to
791eefd
Compare
791eefd
to
418c0fe
Compare
e9933f4
to
d25c432
Compare
We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please sign the linked documents below to get yourself added. https://na3.docusign.net/Member/PowerFormSigning.aspx?PowerFormId=b15c81cc-b5ea-42a6-9107-3992526f2898&env=na3&acct=6e152afc-6284-44af-a4c1-d8ef291db402&v=2 |
@cla-bot check |
The cla-bot has been summoned, and re-checked this pull request! |
c7dba1c
to
1d9a02b
Compare
core/vm/gas_table.go
Outdated
return params.SstoreClearGas, nil | ||
multiGas := multigas.StorageAccessGas(params.SstoreClearGas) | ||
singleGas, overflow := multiGas.SingleGas() | ||
if overflow { |
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.
I thought we decided NOT to check the overflow when calculating singleGas from multiGas. No?
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.
Fixed
32dcaff
to
d055606
Compare
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.
LGTM, just a minor comment.
d055606
to
7b73188
Compare
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.
I'm approving this, but it there is one more tiny nit of a comment. Please address that, and then we can merge it.
For NIT-3484
Done:
gasFunc
api to return multi-dimensional gasNewEmptyMultiGas
withZeroGas
after Add more methods to MultiGas struct #483 mergedmakeGasSStoreFunc
gasSStore4762
gasSStore
gasSStoreEIP2200
Сheat sheet when which methods are used
gasSStore
Before Istanbul (!IsIstanbul)
gasSStoreEIP2200
Istanbul hard fork (IsIstanbul == true)
makeGasSStoreFunc
gasSStore4762
IsEIP4762 == true