diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-20 16:14:10 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-21 21:09:34 +0800 |
commit | 1e0c336d293367bb75df494a685cabb2029f318e (patch) | |
tree | 247cb97053f24b1a8b84d66e8e4a2e3030453450 /consensus | |
parent | 9e095251b71255ff346ee9300df8754eb6b64903 (diff) | |
download | dexon-1e0c336d293367bb75df494a685cabb2029f318e.tar dexon-1e0c336d293367bb75df494a685cabb2029f318e.tar.gz dexon-1e0c336d293367bb75df494a685cabb2029f318e.tar.bz2 dexon-1e0c336d293367bb75df494a685cabb2029f318e.tar.lz dexon-1e0c336d293367bb75df494a685cabb2029f318e.tar.xz dexon-1e0c336d293367bb75df494a685cabb2029f318e.tar.zst dexon-1e0c336d293367bb75df494a685cabb2029f318e.zip |
cmd/puppeth: etherchain light block explorer for PoW nets
Diffstat (limited to 'consensus')
-rw-r--r-- | consensus/ethash/consensus.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go index 6a19d449f..e330b7ce5 100644 --- a/consensus/ethash/consensus.go +++ b/consensus/ethash/consensus.go @@ -36,8 +36,8 @@ import ( // Ethash proof-of-work protocol constants. var ( - frontierBlockReward *big.Int = big.NewInt(5e+18) // Block reward in wei for successfully mining a block - byzantiumBlockReward *big.Int = big.NewInt(3e+18) // Block reward in wei for successfully mining a block upward from Byzantium + FrontierBlockReward *big.Int = big.NewInt(5e+18) // Block reward in wei for successfully mining a block + ByzantiumBlockReward *big.Int = big.NewInt(3e+18) // Block reward in wei for successfully mining a block upward from Byzantium maxUncles = 2 // Maximum number of uncles allowed in a single block ) @@ -529,9 +529,9 @@ var ( // TODO (karalabe): Move the chain maker into this package and make this private! func AccumulateRewards(config *params.ChainConfig, state *state.StateDB, header *types.Header, uncles []*types.Header) { // Select the correct block reward based on chain progression - blockReward := frontierBlockReward + blockReward := FrontierBlockReward if config.IsByzantium(header.Number) { - blockReward = byzantiumBlockReward + blockReward = ByzantiumBlockReward } // Accumulate the rewards for the miner and any included uncles reward := new(big.Int).Set(blockReward) |