Initial stateDB and related interface implementations

This commit is contained in:
Aleksandr Bezobchuk
2018-10-02 20:22:15 -04:00
parent 17fa941fa1
commit be81045e26
10 changed files with 678 additions and 38 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ var (
// accumulateRewards credits the coinbase of the given block with the mining
// reward. The total reward consists of the static block reward and rewards for
// included uncles. The coinbase of each uncle block is also rewarded.
func accumulateRewards(config *ethparams.ChainConfig, state *ethstate.StateDB, header *ethtypes.Header, uncles []*ethtypes.Header) {
func accumulateRewards(config *ethparams.ChainConfig, state ethstate.StateDB, header *ethtypes.Header, uncles []*ethtypes.Header) {
// select the correct block reward based on chain progression
blockReward := ethash.FrontierBlockReward
if config.IsByzantium(header.Number) {