137e8deab6
* discovery: Only add nodes to routing table after receiving pong. Previously the discovery algorithm would add nodes to the routing table before confirming that the endpoint is participating in the protocol. This now tracks in-flight pings and adds to the routing table only after receiving a response. * discovery: Refactor packet creation into its own function. This function is useful inside unit tests. * discovery: Additional testing for new add_node behavior. * discovery: Track expiration of pings to non-yet-in-bucket nodes. Now that we may ping nodes before adding to a k-bucket, the timeout tracking must be separate from BucketEntry. * discovery: Verify echo hash on pong packets. Stores packet hash with in-flight requests and matches with pong response. * discovery: Track timeouts on FIND_NODE requests. * discovery: Retry failed pings with exponential backoff. UDP packets may get dropped, so instead of immediately booting nodes that fail to respond to a ping, retry 4 times with exponential backoff. * !fixup Use slice instead of Vec for request_backoff. |
||
---|---|---|
.. | ||
bloom | ||
blooms-db | ||
dir | ||
fake-fetch | ||
fake-hardware-wallet | ||
fetch | ||
io | ||
journaldb | ||
keccak-hasher | ||
macros | ||
mem | ||
memory_cache | ||
migration-rocksdb | ||
network | ||
network-devp2p | ||
panic_hook | ||
patricia-trie-ethereum | ||
reactor | ||
rlp_compress | ||
rlp_derive | ||
stats | ||
stop-guard | ||
trace-time | ||
triehash-ethereum | ||
unexpected | ||
using_queue | ||
version |