Skip to content
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

Fix/clique eip2 config #121

Merged
merged 6 commits into from
Jun 16, 2020
Merged

Fix/clique eip2 config #121

merged 6 commits into from
Jun 16, 2020

Conversation

meowsbits
Copy link
Contributor

@meowsbits meowsbits commented Jun 16, 2020

This fixes a consensus issue affecting Clique-based chain configurations.

Tests are introduced to prove cross-consensus compatibility for cross-client state tests.

Fixes #120

…used by misconfigured EIP2

EthashEIP2F interface method is poorly named.
EIP2 is NOT Ethash-specific. It is a messy EIP,
and specifies a lot of different things.
Among them, it specifies gas cost of contract creation,
changing the original cost of 21000 to 53000.

The issue cited below sees a variance of 32000 in
gas cost outcomes for a contract creation. This is
explained by the difference in the intrinsic gas cost
without and with this EIP.

Fixes #120

Signed-off-by: meows <[email protected]>
... and out of the Ethash module.

This causes YoloV1 tests to pass.

Signed-off-by: meows <[email protected]>
…ethv0,parity: rename EthashEIP2Transition -> EIP2Transition

Signed-off-by: meows <[email protected]>
This should prove that Clique configurations are
interchangeable at the consensus state level with
their Ethash counterpart.

Currently only installed for the Istanbul config
since that includes all of the applicable state-affecting
upgrades.

Signed-off-by: meows <[email protected]>
Feature tests test the EIP-based feature interface
compatibilities across supported client configurations.

Consensus tests prove congruence between consensus protocols.

Signed-off-by: meows <[email protected]>
@meowsbits meowsbits requested review from eyfl and soc1c June 16, 2020 17:53
@meowsbits meowsbits merged commit 08186a7 into master Jun 16, 2020
@meowsbits meowsbits deleted the fix/clique-eip2-config branch June 16, 2020 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clique configs have invalid intrinsic tx contract creation costs
1 participant