diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-30 14:03:22 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:52 +0800 |
commit | 6e0cf992988f29daabd39e67f2f6ce8034ba4513 (patch) | |
tree | a60995a993cc0d5dd2c1a520f12243c78311a747 /consensus/dexcon/dexcon.go | |
parent | b109172d0141c704f90e0272dcab806791c4580b (diff) | |
download | dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar.gz dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar.bz2 dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar.lz dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar.xz dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.tar.zst dexon-6e0cf992988f29daabd39e67f2f6ce8034ba4513.zip |
core: fix blockReward serialization
Diffstat (limited to 'consensus/dexcon/dexcon.go')
-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 } |