Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[PAN-2756] EIP-2028 - Reduce intrinsic gas cost #1739

Merged
merged 4 commits into from
Jul 23, 2019

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Jul 23, 2019

PR description

Reduce the non-zero byte of intrinsic gas cose from 68 to 16.
Keep all other values the same.

Reduce the non-zero byte of intrinsic gas cose from 68 to 16.
Keep all other values the same.
@shemnon shemnon changed the title [EIP-2028] Reduce intrinsic gas cost [PAN-2756] EIP-2028 - Reduce intrinsic gas cost Jul 23, 2019
if (payload.get(i) == 0) {
++zeros;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(optional) would be nice to dedupe this zero counting logic

@@ -110,7 +110,7 @@ public ExecutionContextTestFixture build() {
if (protocolSchedule == null) {
protocolSchedule =
new ProtocolScheduleBuilder<>(
new StubGenesisConfigOptions().istanbulBlock(0),
new StubGenesisConfigOptions().constantinopleFixBlock(0),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this change for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prices changed and the old unit tests were based on Petersburg prices. I had speculatively changed this test to Istanbul when I added Istanbul support now I'm moving it back. Once Istanbul is on mainnet we should revisit these tests and assertions.

@shemnon shemnon merged commit ed57a9b into PegaSysEng:master Jul 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants