diff options
author | Bojie Wu <bojie@dexon.org> | 2018-10-15 14:43:54 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | de9e240e86834e2619479b6f7eff6b8684607b46 (patch) | |
tree | 30cbd3f687bebe78e6d70fa7ab2943179e1aa66f /consensus | |
parent | 7992dfcf92b38869a4df5e9a2ad6765ff6d95d7b (diff) | |
download | dexon-de9e240e86834e2619479b6f7eff6b8684607b46.tar dexon-de9e240e86834e2619479b6f7eff6b8684607b46.tar.gz dexon-de9e240e86834e2619479b6f7eff6b8684607b46.tar.bz2 dexon-de9e240e86834e2619479b6f7eff6b8684607b46.tar.lz dexon-de9e240e86834e2619479b6f7eff6b8684607b46.tar.xz dexon-de9e240e86834e2619479b6f7eff6b8684607b46.tar.zst dexon-de9e240e86834e2619479b6f7eff6b8684607b46.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)) |