erigon-pulse/p2p
battlmonstr 91076141b1
p2p (#4119): treat slow discover v5 tests (#4122)
* configure a 50 ms timeout for tests (like v4 tests)
* use in-memory DB (like v4 tests)
* TestUDPv5_callTimeoutReset: improve speed from 1.2s to 0.2s
* TestUDPv5_callTimeoutReset: reduce the likelihood of "RPC timeout"
* move lookup tests to the "integration" suite
* log details of unmatched packets and sends to non-existing nodes
* fix flaky TestUDPv5_findnodeHandling:

    Table.nextRevalidateTime was random (from 0 to 10s).
    Sometimes it triggered doRevalidate immediately, and it produced an unexpected ping.
    Configure a high interval to not revalidate during the tests.

Time improved from 1.7s to 0.2s.

Test with:

    go test ./p2p/discover -run TestUDPv5 -count 1
2022-05-12 10:24:51 +07:00
..
discover p2p (#4119): treat slow discover v5 tests (#4122) 2022-05-12 10:24:51 +07:00
dnsdisc Refactor crypto.FromECDSAPub to MarshalPubkey/Std (#3797) 2022-03-31 11:06:20 +07:00
enode Refactor crypto.FromECDSAPub to MarshalPubkey/Std (#3797) 2022-03-31 11:06:20 +07:00
enr
nat p2p: Disable port mapping task with --nat extip (#3612) 2022-02-24 15:09:56 +00:00
netutil
rlpx Refactor crypto.FromECDSAPub to MarshalPubkey/Std (#3797) 2022-03-31 11:06:20 +07:00
simulations p2p: refactor MaxPendingPeers handling (#3981) 2022-04-28 09:21:52 +07:00
dial_test.go
dial.go p2p: refactor MaxPendingPeers handling (#3981) 2022-04-28 09:21:52 +07:00
message_test.go
message.go Replace ioutil with io and os (#3946) 2022-04-23 15:43:00 +01:00
metrics.go
node_key_config.go Fix NodeKeyConfig.save() (#3720) 2022-03-16 16:58:56 +00:00
peer_error.go p2p: define DiscReason as uint8 (#4090) 2022-05-06 16:19:53 +01:00
peer_test.go Switch peerId from 256 to 512 bit (as in stable) (#3862) 2022-04-10 08:01:25 +01:00
peer.go p2p: define DiscReason as uint8 (#4090) 2022-05-06 16:19:53 +01:00
protocol.go Switch peerId from 256 to 512 bit (as in stable) (#3862) 2022-04-10 08:01:25 +01:00
server_test.go p2p: crawler-friendly handshake (#3982) 2022-04-28 23:21:22 +01:00
server.go p2p: crawler-friendly handshake (#3982) 2022-04-28 23:21:22 +01:00
transport_test.go Refactor crypto.FromECDSAPub to MarshalPubkey/Std (#3797) 2022-03-31 11:06:20 +07:00
transport.go remove metrics package, step 1 (#4094) 2022-05-07 14:52:04 +07:00
util_test.go
util.go