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

Implement EIP-1234 #447

Merged
merged 1 commit into from
Sep 25, 2018
Merged

Implement EIP-1234 #447

merged 1 commit into from
Sep 25, 2018

Conversation

germsvel
Copy link
Contributor

@germsvel germsvel commented Sep 25, 2018

This resolves #436

Summary

This implements EIP-1234 which updates the difficulty calculation and the block reward for Constantinople.

More details

Thus far we have been using Parity's chain config files to generate configuration for a chain. We update those files to include the values for Constantinople.

In this change, however, Parity updates not only some values in the json configuration but also how they are stored. In particular, the block rewards and the bomb delay factor can now be a single value or json objects whose key is the block_number of the fork in question and the value is the thing looked for. So, for example, we could find this in a block_reward,

"0" => 300000000,
"1700000" => 2000000
}

We make updates to our Chain module to account for this.

Summary
=======

This implements EIP-1234 which updates the difficulty calculation and
the block reward for Constantinople.

More details
===========

Thus far we have been using Parity's chain config files to generate
configuration for a chain. We update those files to include the values
for Constantinople.

In this change, however, Parity updates not only some values in the json
configuration but also how they are stored. In particular, the block
rewards and the bomb delay factor can now be a single value or json
objects whose key is the block_number of the fork in question and
the value is the thing looked for. So, for example, we could find this
in a block_reward,

```
block_reward: {
 "0" => 300000000,
 "1700000" => 2000000
}
```

We make updates to our `Chain` module to account for this.

Update ethereum_common_tests

Run generate_state_tests

We update the state tests with tests that are still failing and the
passing percentages in the main README.

This change also updates chains from parity:

https://github.com/paritytech/parity-ethereum/tree/master/ethcore/res/ethereum
@MattMSumner
Copy link
Contributor

MattMSumner commented Sep 25, 2018

This adds some previously passing tests to the failing tests lists

@MattMSumner MattMSumner merged commit 4024c64 into master Sep 25, 2018
@ghost ghost removed the status: in progress label Sep 25, 2018
@MattMSumner MattMSumner deleted the mms-gv-eip-1234 branch September 25, 2018 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EIP-1234
3 participants