bsc/les/vflux
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
..
client les: fix UDP connection query (#22451) 2021-03-16 12:53:54 +01:00
server les: UDP pre-negotiation of available server capacity (#22183) 2021-03-01 10:24:20 +01:00
requests.go les: UDP pre-negotiation of available server capacity (#22183) 2021-03-01 10:24:20 +01:00