Commit 0029a86 1 parent 400332b commit 0029a86 Copy full SHA for 0029a86
File tree 1 file changed +0
-10
lines changed
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,6 @@ func (self *worker) update() {
297
297
298
298
func (self * worker ) wait () {
299
299
for {
300
- mustCommitNewWork := true
301
300
for result := range self .recv {
302
301
atomic .AddInt32 (& self .atWork , - 1 )
303
302
@@ -322,11 +321,6 @@ func (self *worker) wait() {
322
321
log .Error ("Failed writing block to chain" , "err" , err )
323
322
continue
324
323
}
325
- // check if canon block and write transactions
326
- if stat == core .CanonStatTy {
327
- // implicit by posting ChainHeadEvent
328
- mustCommitNewWork = false
329
- }
330
324
// Broadcast the block and announce chain insertion event
331
325
self .mux .Post (core.NewMinedBlockEvent {Block : block })
332
326
var (
@@ -341,10 +335,6 @@ func (self *worker) wait() {
341
335
342
336
// Insert the block into the set of pending ones to wait for confirmations
343
337
self .unconfirmed .Insert (block .NumberU64 (), block .Hash ())
344
-
345
- if mustCommitNewWork {
346
- self .commitNewWork ()
347
- }
348
338
}
349
339
}
350
340
}
You can’t perform that action at this time.
0 commit comments