aboutsummaryrefslogtreecommitdiffstats
path: root/miner
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 /miner
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 'miner')
-rw-r--r--miner/worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go
index 802c7e365..64ac21ccd 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -956,7 +956,7 @@ func (w *worker) commit(uncles []*types.Header, interval func(), update bool, st
*receipts[i] = *l
}
s := w.current.state.Copy()
- block, err := w.engine.Finalize(w.chain, w.current.header, s, w.current.txs, uncles, w.current.receipts)
+ block, err := w.engine.FinalizeAndAssemble(w.chain, w.current.header, s, w.current.txs, uncles, w.current.receipts)
if err != nil {
return err
}