Felix Lange
92928309b2
p2p/discover: add version number to ping packet
...
The primary motivation for doing this right now is that old PoC 8
nodes and newer PoC 9 nodes keep discovering each other, causing
handshake failures.
10 years ago
obscuren
4f5b362bda
%#x => %x
10 years ago
zelig
e150832734
p2p: server>discover table Self=Node exported
10 years ago
Felix Lange
2c505efd1e
p2p/discover: add NodeID.Pubkey
10 years ago
Felix Lange
7ea131d4ff
p2p/discover: fix pending replies iteration
...
Range expressions capture the length of the slice once before the first
iteration. A range expression cannot be used here since the loop
modifies the slice variable (including length changes).
10 years ago
Felix Lange
cf754b9483
p2p/discover: fix race in ListenUDP
...
udp.Table was assigned after the readLoop started, so
packets could arrive and be processed before the Table was there.
10 years ago
Felix Lange
170eb3ac68
p2p/discover: map listening port using configured mechanism
10 years ago
Felix Lange
82f0bd9009
p2p/discover: code review fixes
10 years ago
Felix Lange
9915d3c3be
p2p/discover: deflake UDP tests
10 years ago
Felix Lange
028775a086
cmd/ethereum, cmd/mist: add flag for discovery bootstrap nodes
10 years ago
Felix Lange
8564eb9f7e
p2p/discover: add node URL functions, distinguish TCP/UDP ports
...
The discovery RPC protocol does not yet distinguish TCP and UDP ports.
But it can't hurt to do so in our internal model.
10 years ago
Felix Lange
739066ec56
p2p/discover: add some helper functions
10 years ago
Felix Lange
12224c7f59
p2p/discover: new package implementing the Node Discovery Protocol
10 years ago