diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-25 18:35:25 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | be8c1e3773791e1f8c69718950c479af3b38556f (patch) | |
tree | 6c0936247529144089af9b63e999c5575a3ad846 /consensus/dexcon | |
parent | b880292d2c28a6fad80eaa61c999af00ffe45c11 (diff) | |
download | dexon-be8c1e3773791e1f8c69718950c479af3b38556f.tar.gz dexon-be8c1e3773791e1f8c69718950c479af3b38556f.tar.zst dexon-be8c1e3773791e1f8c69718950c479af3b38556f.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) |