diff options
author | Bojie Wu <bojie@dexon.org> | 2018-10-15 14:43:54 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:49 +0800 |
commit | 19dd71a49473237811f92b844c1cf7a9c5f1026b (patch) | |
tree | ab5b43cadc90f95a4e0b7690b15b92dc8bea2c21 /consensus | |
parent | 2e223e7fdae87de6a44b150e92d3f1a83690c781 (diff) | |
download | go-tangerine-19dd71a49473237811f92b844c1cf7a9c5f1026b.tar go-tangerine-19dd71a49473237811f92b844c1cf7a9c5f1026b.tar.gz go-tangerine-19dd71a49473237811f92b844c1cf7a9c5f1026b.tar.bz2 go-tangerine-19dd71a49473237811f92b844c1cf7a9c5f1026b.tar.lz go-tangerine-19dd71a49473237811f92b844c1cf7a9c5f1026b.tar.xz go-tangerine-19dd71a49473237811f92b844c1cf7a9c5f1026b.tar.zst go-tangerine-19dd71a49473237811f92b844c1cf7a9c5f1026b.zip |
app: add default block reward
Diffstat (limited to 'consensus')
-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)) |