• Felix Lange's avatar
    p2p/discover: split out discv4 code · dba1750e
    Felix Lange authored
    This change restructures the internals of p2p/discover to make room for
    the discv5 code which will soon be added to this package.
    
    - packet type names now have a "V4" suffix.
    - ListenUDP returns *UDPv4 instead of *Table. This technically breaks
      the API but the only caller in go-ethereum is package p2p, which uses
      a compatible interface and doesn't need changes.
    - The internal transport interface is changed to make Table reusable for v5.
    - The 'lookup' code moves from table to transport. This required
      updating the lookup unit test to use udpTest instead of a custom transport.
    dba1750e
Name
Last commit
Last update
..
discover Loading commit data...
discv5 Loading commit data...
enode Loading commit data...
enr Loading commit data...
nat Loading commit data...
netutil Loading commit data...
protocols Loading commit data...
simulations Loading commit data...
testing Loading commit data...
dial.go Loading commit data...
dial_test.go Loading commit data...
message.go Loading commit data...
message_test.go Loading commit data...
metrics.go Loading commit data...
peer.go Loading commit data...
peer_error.go Loading commit data...
peer_test.go Loading commit data...
protocol.go Loading commit data...
rlpx.go Loading commit data...
rlpx_test.go Loading commit data...
server.go Loading commit data...
server_test.go Loading commit data...