aboutsummaryrefslogtreecommitdiffstats
path: root/consensus/dexcon
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-30 14:03:22 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commitbed3b0b6dd9eb86dd8e6d100904e7299446585f5 (patch)
tree9e99daebeb15c6d4c3c531740015f9e229d5e556 /consensus/dexcon
parent26153cdebdc3c49f6f71537e94297a4f3a0ce07c (diff)
downloaddexon-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.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
}