aboutsummaryrefslogtreecommitdiffstats
path: root/consensus/dexcon/dexcon.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-25 18:35:25 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:52 +0800
commita0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1 (patch)
tree302bd80de1d32f587f03ecfbc9f99b3dffbefa8d /consensus/dexcon/dexcon.go
parentc15f524e4a4bc22dfca78777bfc4ae4cf76b8933 (diff)
downloaddexon-a0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1.tar
dexon-a0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1.tar.gz
dexon-a0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1.tar.bz2
dexon-a0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1.tar.lz
dexon-a0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1.tar.xz
dexon-a0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1.tar.zst
dexon-a0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1.zip
dex: remove uneeded info from block header
Diffstat (limited to 'consensus/dexcon/dexcon.go')
-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)