aboutsummaryrefslogtreecommitdiffstats
path: root/consensus
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-25 18:35:25 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:17 +0800
commit1d3949f4a7d0e03badcfb682dbba99608b41e1c9 (patch)
tree77a89679f267e2888c4f2bdefc590fed36646417 /consensus
parent218edbb4b4116b6f5e5707c5c89b8a346f47300d (diff)
downloadgo-tangerine-1d3949f4a7d0e03badcfb682dbba99608b41e1c9.tar
go-tangerine-1d3949f4a7d0e03badcfb682dbba99608b41e1c9.tar.gz
go-tangerine-1d3949f4a7d0e03badcfb682dbba99608b41e1c9.tar.bz2
go-tangerine-1d3949f4a7d0e03badcfb682dbba99608b41e1c9.tar.lz
go-tangerine-1d3949f4a7d0e03badcfb682dbba99608b41e1c9.tar.xz
go-tangerine-1d3949f4a7d0e03badcfb682dbba99608b41e1c9.tar.zst
go-tangerine-1d3949f4a7d0e03badcfb682dbba99608b41e1c9.zip
dex: remove uneeded info from block header
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 e636108f8..d8c181432 100644
--- a/consensus/dexcon/dexcon.go
+++ b/consensus/dexcon/dexcon.go
@@ -110,7 +110,7 @@ func (d *Dexcon) Prepare(chain consensus.ChainReader, header *types.Header) erro
// Finalize implements consensus.Engine, ensuring no uncles are set, nor block
// rewards given, and returns the final block.
func (d *Dexcon) Finalize(chain consensus.ChainReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, uncles []*types.Header, receipts []*types.Receipt) (*types.Block, error) {
- config := d.configFetcher.DexconConfiguration(header.Position.Round)
+ config := d.configFetcher.DexconConfiguration(header.Round)
reward := new(big.Int).Div(config.BlockReward, big.NewInt(int64(config.NumChains)))
state.AddBalance(header.Coinbase, reward)
header.Root = state.IntermediateRoot(true)