diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-30 14:03:22 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 32d79763bfb2ab6952786bf590c3a65fd33eca50 (patch) | |
tree | 1fe752f3cea2fe82370ac8cfba7d6fd9e5097aaf /consensus | |
parent | 07c599fec712ff4af9725bcd0db1a55bcb81bea1 (diff) | |
download | dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.gz dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.zst dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.zip |
core: fix blockReward serialization
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 67bf33bbf..f0a133ccf 100644 --- a/consensus/dexcon/dexcon.go +++ b/consensus/dexcon/dexcon.go @@ -114,7 +114,7 @@ func (d *Dexcon) Finalize(chain consensus.ChainReader, header *types.Header, sta reward := new(big.Int).Div(config.BlockReward, big.NewInt(int64(config.NumChains))) state.AddBalance(header.Coinbase, reward) - header.BlockReward = reward + header.Reward = reward header.Root = state.IntermediateRoot(true) return types.NewBlock(header, txs, uncles, receipts), nil } |