consensus, core, tests: implement Metropolis EIP 649

This commit is contained in:
Péter Szilágyi
2017-08-24 12:26:06 +03:00
parent 3c48a25762
commit b872961ec8
8 changed files with 50 additions and 129 deletions

View File

@ -179,7 +179,7 @@ func GenerateChain(config *params.ChainConfig, parent *types.Block, db ethdb.Dat
if gen != nil {
gen(i, b)
}
ethash.AccumulateRewards(statedb, h, b.uncles)
ethash.AccumulateRewards(config, statedb, h, b.uncles)
root, err := statedb.CommitTo(db, config.IsEIP158(h.Number))
if err != nil {
panic(fmt.Sprintf("state write error: %v", err))