diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-25 18:35:25 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:52 +0800 |
commit | a0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1 (patch) | |
tree | 302bd80de1d32f587f03ecfbc9f99b3dffbefa8d /consensus/dexcon | |
parent | c15f524e4a4bc22dfca78777bfc4ae4cf76b8933 (diff) | |
download | dexon-a0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1.tar.gz dexon-a0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1.tar.zst dexon-a0b4489cb5f206acdbb130aca18ff2dcb6cfe0d1.zip |
dex: remove uneeded info from block header
Diffstat (limited to 'consensus/dexcon')
-rw-r--r-- | consensus/dexcon/dexcon.go | 2 |
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) |