-
Notifications
You must be signed in to change notification settings - Fork 43
[Constantinople] Add Constantinople SSTORE gas/refund prices (EIP1283) #27
Conversation
Haven't looked in detail into the EIP yet, but doesn't any of these values correspond to (respectively are identical) to the old SSTORE values defined in https://github.com/ethereumjs/ethereumjs-common/blob/master/hardforks/chainstart.json? (Or later, not sure, but probably double check would be good) |
Some of them are the same as old SSTORE values but there are several new values and I wanted to keep the naming consistent with geth: https://github.com/ethereum/go-ethereum/pull/17383/files#diff-c3868eb970ebbbf00a0a47a656d12ce0L39 |
Ah, nevertheless that's not good for the consistency of the library if we have floating around same value references differently named. Then also rename the old versions to the new geth-conforming names and we do a breaking release here, more or less no-one is using this library yet anyhow. |
Although some of the new EIP-1283 params may have the same values as existing ones, they have a different semantic meaning, so I thought it would be clearer to create new constants. This is especially true in the context of
In EIP-1283, there are two different ways that a value can change to zero depending on what the original value was. This is represented by two new params in geth:
I believe you are proposing that instead of creating these new params, we re-use On the other hand, I can see the appeal of not having to change the I'm totally fine with whatever approach we decide to take. If you have a strong preference for re-using existing parameters, just let me know and I can easily modify ethereumjs/ethereumjs-monorepo#367. |
Ah no, I am not so deeply into it, if semantics changes it is very much justified to just have new parameters and we can keep this "as is", will directly merge + do a release. Thanks for the through explanation, really great for getting the context. |
(P.S: are you up late or early or just in an unexpected timezone? 😄 😄 ) |
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.
Looks good.
Up late... lol. Baby is having a rough night 😞 |
No description provided.