openethereum/ethcore/src
Stewart Mackenzie d152fa3e85 Ethereum Classic Monetary Policy (#5741)
* Ethereum Classic Monetary Policy

Create a new parameter `ecip1017EraRounds`. When the block number
passes one era rounds, the reward is reduced by 20%.

See https://github.com/ethereumproject/ECIPs/blob/master/ECIPs/ECIP-1017.md

* Update rewards for uncle miners for ECIP1017

In the monetary policy, the rewards are changed from "up to 7/8 of the
reward" to "1/32 of the reward".

* Fix an off-by-one error in ECIP1017 era calculation

According to
https://github.com/ethereumproject/ECIPs/blob/master/ECIPs/ECIP-1017.md,
when in block number 5,000,000, it should still be in Era 1 (which in
our code `era == 0`). So we need to check whether the `rem` equals to
zero and act accordingly when calculating the era.

* `ecip1017_era_rounds` missing from EthashParams when run in build bot

* strip out ecip1017_eras_block_reward function and add unit test
2017-06-19 18:56:37 +02:00
..
account_provider Fix description of AccountProvider setting. 2017-06-14 12:06:15 +02:00
blockchain Create an account for chain=dev (#5612) 2017-05-19 17:06:36 +02:00
blooms rlp deserialization refactor, 30% faster (#4901) 2017-03-22 14:41:46 +01:00
client eip214, #4833 (#4851) 2017-06-19 11:41:46 +02:00
engines eip214, #4833 (#4851) 2017-06-19 11:41:46 +02:00
ethereum Ethereum Classic Monetary Policy (#5741) 2017-06-19 18:56:37 +02:00
evm eip214, #4833 (#4851) 2017-06-19 11:41:46 +02:00
json_tests eip214, #4833 (#4851) 2017-06-19 11:41:46 +02:00
migrations store epoch transition proofs in DB 2017-04-19 14:58:19 +02:00
miner EIP-210 BLOCKHASH changes (#5505) 2017-05-30 11:52:33 +02:00
snapshot EIP-210 BLOCKHASH changes (#5505) 2017-05-30 11:52:33 +02:00
spec eip214, #4833 (#4851) 2017-06-19 11:41:46 +02:00
state EIP-210 BLOCKHASH changes (#5505) 2017-05-30 11:52:33 +02:00
tests Ethereum Classic Monetary Policy (#5741) 2017-06-19 18:56:37 +02:00
trace Fix stack display in evmbin. (#5733) 2017-06-09 12:31:03 +02:00
types eip214, #4833 (#4851) 2017-06-19 11:41:46 +02:00
verification verify_external in verifier trait 2017-04-13 20:34:16 +02:00
views rlp deserialization refactor, 30% faster (#4901) 2017-03-22 14:41:46 +01:00
account_db.rs use NULL_RLP, remove NULL_RLP_STATIC (#5742) 2017-06-07 11:58:39 +02:00
action_params.rs Update dependencies and bigint api (#5685) 2017-05-24 12:31:33 +02:00
basic_types.rs Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
block.rs EIP-210 BLOCKHASH changes (#5505) 2017-05-30 11:52:33 +02:00
builtin.rs minor optimizations of the modexp builtin 2017-06-17 21:18:52 +02:00
cache_manager.rs Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
db.rs use a database in ethcore-light 2017-03-21 20:57:13 +01:00
env_info.rs Remote transaction execution (#4684) 2017-03-08 14:39:44 +01:00
error.rs PoA warp implementation (#5488) 2017-05-17 12:41:33 +02:00
executive.rs eip214, #4833 (#4851) 2017-06-19 11:41:46 +02:00
externalities.rs eip214, #4833 (#4851) 2017-06-19 11:41:46 +02:00
factory.rs Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
header.rs tests for on_demand 2017-04-07 19:35:39 +02:00
lib.rs fix the doc of installing rust 2017-05-10 17:13:40 +08:00
pod_account.rs Calculate post-constructors state root in spec at load time (#5523) 2017-05-03 09:00:02 +02:00
pod_state.rs Fix whitespace (#4299) 2017-01-25 18:51:41 +01:00
service.rs Save pending local transactions in the database (#4566) 2017-02-20 17:21:55 +01:00
state_db.rs StateDB: change spaces to tab 2017-06-18 23:13:27 +08:00