plugeth/les/vflux/client
Felföldi Zsolt 62d8022b51
les: fix UDP connection query (#22451)
This PR fixes multiple issues with the UDP connection pre-negotiation feature:

- the enable condition was wrong (it checked the existence of the DiscV5 struct where it wasn't initialized yet, disabling the feature even if discv5 was enabled)
- the server pool queried already connected nodes when the discovery iterators returned them again
- servers responded positively before they were synced and really willing to accept connections

Metrics are also added on the server side that count the positive and negative replies to served connection queries.
2021-03-16 12:53:54 +01:00
..
api.go les: renamed lespay to vflux (#22347) 2021-02-19 14:44:16 +01:00
fillset_test.go les: renamed lespay to vflux (#22347) 2021-02-19 14:44:16 +01:00
fillset.go les: renamed lespay to vflux (#22347) 2021-02-19 14:44:16 +01:00
queueiterator_test.go les: move server pool to les/vflux/client (#22377) 2021-02-25 21:08:34 +01:00
queueiterator.go les: renamed lespay to vflux (#22347) 2021-02-19 14:44:16 +01:00
requestbasket_test.go les: renamed lespay to vflux (#22347) 2021-02-19 14:44:16 +01:00
requestbasket.go les: renamed lespay to vflux (#22347) 2021-02-19 14:44:16 +01:00
serverpool_test.go les: fix nodiscover option on the client side (#22422) 2021-03-03 15:05:24 +01:00
serverpool.go les: fix UDP connection query (#22451) 2021-03-16 12:53:54 +01:00
timestats_test.go les: renamed lespay to vflux (#22347) 2021-02-19 14:44:16 +01:00
timestats.go les: renamed lespay to vflux (#22347) 2021-02-19 14:44:16 +01:00
valuetracker_test.go les: move server pool to les/vflux/client (#22377) 2021-02-25 21:08:34 +01:00
valuetracker.go les: move server pool to les/vflux/client (#22377) 2021-02-25 21:08:34 +01:00
wrsiterator_test.go les: renamed lespay to vflux (#22347) 2021-02-19 14:44:16 +01:00
wrsiterator.go les: renamed lespay to vflux (#22347) 2021-02-19 14:44:16 +01:00