aboutsummaryrefslogtreecommitdiffstats
path: root/consensus
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-30 14:03:22 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit32d79763bfb2ab6952786bf590c3a65fd33eca50 (patch)
tree1fe752f3cea2fe82370ac8cfba7d6fd9e5097aaf /consensus
parent07c599fec712ff4af9725bcd0db1a55bcb81bea1 (diff)
downloaddexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.gz
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.bz2
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.lz
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.xz
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.tar.zst
dexon-32d79763bfb2ab6952786bf590c3a65fd33eca50.zip
core: fix blockReward serialization
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 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
}