diff options
author | Bojie Wu <bojie@dexon.org> | 2018-10-15 14:43:54 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | c0947d31fe1c23821acebd0d712066676005d7d1 (patch) | |
tree | 37e245e7ea393eff28b5e822e081cd3f0352579b /consensus/dexcon | |
parent | b5dac78dbe5c8351de679385d5257b92028e8ea3 (diff) | |
download | go-tangerine-c0947d31fe1c23821acebd0d712066676005d7d1.tar go-tangerine-c0947d31fe1c23821acebd0d712066676005d7d1.tar.gz go-tangerine-c0947d31fe1c23821acebd0d712066676005d7d1.tar.bz2 go-tangerine-c0947d31fe1c23821acebd0d712066676005d7d1.tar.lz go-tangerine-c0947d31fe1c23821acebd0d712066676005d7d1.tar.xz go-tangerine-c0947d31fe1c23821acebd0d712066676005d7d1.tar.zst go-tangerine-c0947d31fe1c23821acebd0d712066676005d7d1.zip |
app: add default block reward
Diffstat (limited to 'consensus/dexcon')
-rw-r--r-- | consensus/dexcon/dexcon.go | 2 |
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)) |