op-geth/p2p/discover
Péter Szilágyi 6ef3a16869
p2p/enode: use unix timestamp as base ENR sequence number (#19903)
This PR ensures that wiping all data associated with a node (apart from its nodekey)
will not generate already used sequence number for the ENRs, since all remote nodes
would reject them until they out-number the previously published largest one.

The big complication with this scheme is that every local update to the ENR can
potentially bump the sequence number by one. In order to ensure that local updates
do not outrun the clock, the sequence number is a millisecond-precision timestamp,
and updates are throttled to occur at most once per millisecond.

Co-authored-by: Felix Lange <fjl@twurst.com>
2021-09-07 12:36:48 +02:00
..
v4wire p2p/discover/v4wire: use optional RLP field for EIP-868 seq (#22842) 2021-05-18 11:48:41 +02:00
v5wire p2p/enode: use unix timestamp as base ENR sequence number (#19903) 2021-09-07 12:36:48 +02:00
common.go p2p: remove term "whitelist" (#23295) 2021-07-29 17:50:18 +02:00
lookup.go p2p/discover: avoid dropping unverified nodes when table is almost empty (#21396) 2020-08-24 14:42:39 +02:00
node.go p2p/discover: implement v5.1 wire protocol (#21647) 2020-10-14 12:28:17 +02:00
ntp.go p2p, p2p/discover, p2p/nat: rework logging using context keys 2017-02-28 10:20:29 +01:00
table.go p2p/discover: fix typo in comments (#21554) 2020-09-11 20:35:38 +02:00
table_test.go p2p/discover: avoid dropping unverified nodes when table is almost empty (#21396) 2020-08-24 14:42:39 +02:00
table_util_test.go p2p/discover: implement v5.1 wire protocol (#21647) 2020-10-14 12:28:17 +02:00
v4_lookup_test.go p2p/discover: implement v5.1 wire protocol (#21647) 2020-10-14 12:28:17 +02:00
v4_udp.go p2p: remove term "whitelist" (#23295) 2021-07-29 17:50:18 +02:00
v4_udp_test.go p2p/discover/v4wire: use optional RLP field for EIP-868 seq (#22842) 2021-05-18 11:48:41 +02:00
v5_udp.go p2p/discover: improve discv5 handling of IPv4-in-IPv6 addresses (#22703) 2021-04-23 18:18:10 +02:00
v5_udp_test.go p2p/discover: improve discv5 handling of IPv4-in-IPv6 addresses (#22703) 2021-04-23 18:18:10 +02:00