aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers.go
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2019-04-30 21:42:36 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-04-30 21:42:36 +0800
commit4c90efdf57ce87edf0d855c8cec10525875a6ab1 (patch)
treebc733d1328110c7570c1fad86834e9e3ad1cfcdf /core/chain_makers.go
parentbefca7e8b0eac00499155c0b9d25814615f0fe24 (diff)
downloadgo-tangerine-4c90efdf57ce87edf0d855c8cec10525875a6ab1.tar
go-tangerine-4c90efdf57ce87edf0d855c8cec10525875a6ab1.tar.gz
go-tangerine-4c90efdf57ce87edf0d855c8cec10525875a6ab1.tar.bz2
go-tangerine-4c90efdf57ce87edf0d855c8cec10525875a6ab1.tar.lz
go-tangerine-4c90efdf57ce87edf0d855c8cec10525875a6ab1.tar.xz
go-tangerine-4c90efdf57ce87edf0d855c8cec10525875a6ab1.tar.zst
go-tangerine-4c90efdf57ce87edf0d855c8cec10525875a6ab1.zip
consensus,core,miner: avoid overhead of creating a new block (#19301)
* consensus,core,miner: avoid overhead of creating a new block * consensus: nitpick dot * consensus: fix some comment formatting nits
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r--core/chain_makers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go
index b80788d19..754b543c7 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -206,7 +206,7 @@ func GenerateChain(config *params.ChainConfig, parent *types.Block, engine conse
}
if b.engine != nil {
// Finalize and seal the block
- block, _ := b.engine.Finalize(chainreader, b.header, statedb, b.txs, b.uncles, b.receipts)
+ block, _ := b.engine.FinalizeAndAssemble(chainreader, b.header, statedb, b.txs, b.uncles, b.receipts)
// Write state changes to db
root, err := statedb.Commit(config.IsEIP158(b.header.Number))