les: fix nodiscover option on the client side (#22422)

This commit is contained in:
Felföldi Zsolt
2021-03-03 15:05:24 +01:00
committed by GitHub
parent ba999105ef
commit b24804d88c
3 changed files with 15 additions and 5 deletions

View File

@@ -107,7 +107,7 @@ func (s *ServerPoolTest) addTrusted(i int) {
}
func (s *ServerPoolTest) start() {
var testQuery queryFunc
var testQuery QueryFunc
if s.preNeg {
testQuery = func(node *enode.Node) int {
idx := testNodeIndex(node.ID())