aboutsummaryrefslogtreecommitdiffstats
path: root/consensus
diff options
context:
space:
mode:
authorBojie Wu <bojie@dexon.org>2018-10-15 14:43:54 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:53 +0800
commitc1daae83ab6bf8d6d474a080069793d978b42a0c (patch)
tree61294898aee665515ae22cec00d70bdb07549fae /consensus
parent76ff1cd5a6002be4d9ef9d131071da0c293c8b37 (diff)
downloaddexon-c1daae83ab6bf8d6d474a080069793d978b42a0c.tar
dexon-c1daae83ab6bf8d6d474a080069793d978b42a0c.tar.gz
dexon-c1daae83ab6bf8d6d474a080069793d978b42a0c.tar.bz2
dexon-c1daae83ab6bf8d6d474a080069793d978b42a0c.tar.lz
dexon-c1daae83ab6bf8d6d474a080069793d978b42a0c.tar.xz
dexon-c1daae83ab6bf8d6d474a080069793d978b42a0c.tar.zst
dexon-c1daae83ab6bf8d6d474a080069793d978b42a0c.zip
app: add default block reward
Diffstat (limited to 'consensus')
-rw-r--r--consensus/dexcon/dexcon.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/consensus/dexcon/dexcon.go b/consensus/dexcon/dexcon.go
index c3d42d599..c18e3cc6a 100644
--- a/consensus/dexcon/dexcon.go
+++ b/consensus/dexcon/dexcon.go
@@ -99,7 +99,7 @@ func (d *Dexcon) Prepare(chain consensus.ChainReader, header *types.Header) erro
// Finalize implements consensus.Engine, ensuring no uncles are set, nor block
// rewards given, and returns the final block.
func (d *Dexcon) Finalize(chain consensus.ChainReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header, receipts []*types.Receipt) (*types.Block, error) {
- reward := new(big.Int).Div(d.config.MiningReward, new(big.Int).SetUint64(uint64(d.config.NumChains)))
+ reward := new(big.Int).Div(d.config.BlockReward, new(big.Int).SetUint64(uint64(d.config.NumChains)))
state.AddBalance(header.Coinbase, reward)
header.Root = state.IntermediateRoot(chain.Config().IsEIP158(header.Number))