File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -292,20 +292,20 @@ func (f *Fetcher) loop() {
292292 height := f .chainHeight ()
293293 for ! f .queue .Empty () {
294294 op := f .queue .PopItem ().(* inject )
295+ hash := op .block .Hash ()
295296 if f .queueChangeHook != nil {
296- f .queueChangeHook (op . block . Hash () , false )
297+ f .queueChangeHook (hash , false )
297298 }
298299 // If too high up the chain or phase, continue later
299300 number := op .block .NumberU64 ()
300301 if number > height + 1 {
301- f .queue .Push (op , - float32 (op . block . NumberU64 () ))
302+ f .queue .Push (op , - float32 (number ))
302303 if f .queueChangeHook != nil {
303- f .queueChangeHook (op . block . Hash () , true )
304+ f .queueChangeHook (hash , true )
304305 }
305306 break
306307 }
307308 // Otherwise if fresh and still unknown, try and import
308- hash := op .block .Hash ()
309309 if number + maxUncleDist < height || f .getBlock (hash ) != nil {
310310 f .forgetBlock (hash )
311311 continue
You can’t perform that action at this time.
0 commit comments