diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-30 14:03:22 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | bed3b0b6dd9eb86dd8e6d100904e7299446585f5 (patch) | |
tree | 9e99daebeb15c6d4c3c531740015f9e229d5e556 /consensus/dexcon | |
parent | 26153cdebdc3c49f6f71537e94297a4f3a0ce07c (diff) | |
download | dexon-bed3b0b6dd9eb86dd8e6d100904e7299446585f5.tar dexon-bed3b0b6dd9eb86dd8e6d100904e7299446585f5.tar.gz dexon-bed3b0b6dd9eb86dd8e6d100904e7299446585f5.tar.bz2 dexon-bed3b0b6dd9eb86dd8e6d100904e7299446585f5.tar.lz dexon-bed3b0b6dd9eb86dd8e6d100904e7299446585f5.tar.xz dexon-bed3b0b6dd9eb86dd8e6d100904e7299446585f5.tar.zst dexon-bed3b0b6dd9eb86dd8e6d100904e7299446585f5.zip |
core: fix blockReward serialization
Diffstat (limited to 'consensus/dexcon')
-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 } |