Patch for concurrent iterator & others (onto v1.11.6) #386
@ -272,6 +272,7 @@ func (f *lightFetcher) mainloop() {
|
|||||||
localHead = f.chain.CurrentHeader()
|
localHead = f.chain.CurrentHeader()
|
||||||
localTd = f.chain.GetTd(localHead.Hash(), localHead.Number.Uint64())
|
localTd = f.chain.GetTd(localHead.Hash(), localHead.Number.Uint64())
|
||||||
)
|
)
|
||||||
|
defer requestTimer.Stop()
|
||||||
sub := f.chain.SubscribeChainHeadEvent(headCh)
|
sub := f.chain.SubscribeChainHeadEvent(headCh)
|
||||||
defer sub.Unsubscribe()
|
defer sub.Unsubscribe()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user