File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
package core
2
2
3
3
import (
4
+ "fmt"
4
5
"math"
5
6
6
7
"github.com/ethereum/go-ethereum/common"
@@ -75,15 +76,19 @@ func (self *Filter) Find() state.Logs {
75
76
var (
76
77
logs state.Logs
77
78
block = self .eth .ChainManager ().GetBlockByNumber (latestBlockNo )
78
- quit bool
79
79
)
80
- for i := 0 ; ! quit && block != nil ; i ++ {
80
+
81
+ done:
82
+ for i := 0 ; block != nil ; i ++ {
83
+ fmt .Println (block .NumberU64 () == 0 )
81
84
// Quit on latest
82
85
switch {
83
- case block .NumberU64 () == earliestBlockNo , block .NumberU64 () == 0 :
84
- quit = true
86
+ case block .NumberU64 () == 0 :
87
+ break done
88
+ case block .NumberU64 () == earliestBlockNo :
89
+ break done
85
90
case self .max <= len (logs ):
86
- break
91
+ break done
87
92
}
88
93
89
94
// Use bloom filtering to see if this block is interesting given the
You can’t perform that action at this time.
0 commit comments