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@byzantine-lab.io>2019-06-12 17:27:17 +0800
commit35db267fc287eea05d0163ec460293761f5c9243 (patch)
treee9cd8ed13d7b9e6376a019680fd3a27acca3f2c5 /consensus
parent8a247252263a9bcc23830217b0c108b2fdd0b84b (diff)
downloadgo-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.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
}