mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
miner/worker | add timer stop to miner
This commit is contained in:
parent
f15849cf00
commit
108bf9937d
1 changed files with 1 additions and 0 deletions
|
|
@ -297,6 +297,7 @@ func (w *worker) newWorkLoop(recommit time.Duration) {
|
||||||
)
|
)
|
||||||
|
|
||||||
timer := time.NewTimer(0)
|
timer := time.NewTimer(0)
|
||||||
|
defer timer.Stop()
|
||||||
<-timer.C // discard the initial tick
|
<-timer.C // discard the initial tick
|
||||||
|
|
||||||
// commit aborts in-flight transaction execution with given signal and resubmits a new one.
|
// commit aborts in-flight transaction execution with given signal and resubmits a new one.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue