erigon-pulse/p2p/discover
battlmonstr 7558730a54
p2p: speed-up TestUDPv4_LookupIterator (#4000)
The test was slow, because it was trying to find
predefined nodeIDs (lookupTestnet) by generating random keys
and trying to find their neighbours
until it hits all nodes of the lookupTestnet.
In addition each FindNode response was waited for 0.5 sec (respTimeout).
This could take up to 30 sec and fail the test suite.

A fake random key generator is now used during the test.
It issues the expected keys, and the lookup converges quickly.
The reply timeout is reduced for the test.
Now it normally takes less than.1 sec.
2022-04-28 09:18:42 +07:00
..
v4wire p2p/discover/v4wire: use optional RLP field for EIP-868 seq (#3963) 2022-04-26 15:37:00 +01:00
v5wire Replace ioutil with io and os (#3946) 2022-04-23 15:43:00 +01:00
common.go p2p: speed-up TestUDPv4_LookupIterator (#4000) 2022-04-28 09:18:42 +07:00
lookup.go Discovery: speed up lookup tests (#3677) 2022-03-11 12:04:42 +07:00
node.go Discovery: refactor public key to node ID conversions. (#3634) 2022-03-03 21:58:31 +07:00
ntp.go Clean up DEBUG category logs (#2776) 2021-10-05 08:14:04 +07:00
table_test.go less qcheck iterations (#3622) 2022-02-25 13:47:48 +07:00
table_util_test.go Discovery: refactor public key to node ID conversions. (#3634) 2022-03-03 21:58:31 +07:00
table.go Discovery: split node records to a sepatate DB table (#3581) (#3667) 2022-03-10 14:57:25 +01:00
v4_lookup_test.go p2p: speed-up TestUDPv4_LookupIterator (#4000) 2022-04-28 09:18:42 +07:00
v4_udp_test.go p2p: speed-up TestUDPv4_LookupIterator (#4000) 2022-04-28 09:18:42 +07:00
v4_udp.go p2p: speed-up TestUDPv4_LookupIterator (#4000) 2022-04-28 09:18:42 +07:00
v5_udp_test.go Discovery: speed up lookup tests (#3677) 2022-03-11 12:04:42 +07:00
v5_udp.go Discovery: add Context to Listen. (#3577) 2022-02-22 18:18:43 +00:00