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() {
292
292
height := f .chainHeight ()
293
293
for ! f .queue .Empty () {
294
294
op := f .queue .PopItem ().(* inject )
295
+ hash := op .block .Hash ()
295
296
if f .queueChangeHook != nil {
296
- f .queueChangeHook (op . block . Hash () , false )
297
+ f .queueChangeHook (hash , false )
297
298
}
298
299
// If too high up the chain or phase, continue later
299
300
number := op .block .NumberU64 ()
300
301
if number > height + 1 {
301
- f .queue .Push (op , - float32 (op . block . NumberU64 () ))
302
+ f .queue .Push (op , - float32 (number ))
302
303
if f .queueChangeHook != nil {
303
- f .queueChangeHook (op . block . Hash () , true )
304
+ f .queueChangeHook (hash , true )
304
305
}
305
306
break
306
307
}
307
308
// Otherwise if fresh and still unknown, try and import
308
- hash := op .block .Hash ()
309
309
if number + maxUncleDist < height || f .getBlock (hash ) != nil {
310
310
f .forgetBlock (hash )
311
311
continue
You can’t perform that action at this time.
0 commit comments