mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
make header for each task
This commit is contained in:
parent
f7cdea2bdc
commit
bd9c29a25a
1 changed files with 3 additions and 1 deletions
|
|
@ -965,7 +965,9 @@ func (w *worker) commit(uncles []*types.Header, interval func(), update bool, st
|
|||
*receipts[i] = *l
|
||||
}
|
||||
s := w.current.state.Copy()
|
||||
block, err := w.engine.FinalizeAndAssemble(w.chain, w.current.header, s, w.current.txs, uncles, w.current.receipts)
|
||||
h := new(types.Header)
|
||||
*h = *w.current.header
|
||||
block, err := w.engine.FinalizeAndAssemble(w.chain, h, s, w.current.txs, uncles, w.current.receipts)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue