diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-30 14:03:22 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | 35db267fc287eea05d0163ec460293761f5c9243 (patch) | |
tree | e9cd8ed13d7b9e6376a019680fd3a27acca3f2c5 /consensus | |
parent | 8a247252263a9bcc23830217b0c108b2fdd0b84b (diff) | |
download | go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar.gz go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar.bz2 go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar.lz go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar.xz go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.tar.zst go-tangerine-35db267fc287eea05d0163ec460293761f5c9243.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 } |