Add block reward contract config to ethash and allow off-chain contracts (#9312)
This adds block reward contract config to ethash. A new config `blockRewardContractCode` is also added to both Aura and ethash. When specified, it will execute the code directly and overrides any `blockRewardContractAddress` config. Having this `blockRewardContractCode` config allows chains to deploy hard fork by simply replacing the current config value, without the need from us to support any `multi` block reward scheme.
Showing
- ethcore/src/engines/authority_round/mod.rs 11 additions, 17 deletionsethcore/src/engines/authority_round/mod.rs
- ethcore/src/engines/block_reward.rs 67 additions, 34 deletionsethcore/src/engines/block_reward.rs
- ethcore/src/engines/mod.rs 40 additions, 0 deletionsethcore/src/engines/mod.rs
- ethcore/src/engines/null_engine.rs 1 addition, 1 deletionethcore/src/engines/null_engine.rs
- ethcore/src/ethereum/ethash.rs 68 additions, 36 deletionsethcore/src/ethereum/ethash.rs
- ethcore/src/machine.rs 43 additions, 18 deletionsethcore/src/machine.rs
- json/src/spec/authority_round.rs 5 additions, 1 deletionjson/src/spec/authority_round.rs
- json/src/spec/ethash.rs 18 additions, 1 deletionjson/src/spec/ethash.rs
Please register or sign in to comment