From 35db267fc287eea05d0163ec460293761f5c9243 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Tue, 30 Oct 2018 14:03:22 +0800 Subject: core: fix blockReward serialization --- consensus/dexcon/dexcon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'consensus') 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 } -- cgit v1.2.3