p2p/discover: add support for EIP-868 (v4 ENR extension) (#19540)
This change implements EIP-868. The UDPv4 transport announces support for the extension in ping/pong and handles enrRequest messages. There are two uses of the extension: If a remote node announces support for EIP-868 in their pong, node revalidation pulls the node's record. The Resolve method requests the record unconditionally.
Showing
- p2p/discover/table.go 37 additions, 23 deletionsp2p/discover/table.go
- p2p/discover/table_test.go 28 additions, 0 deletionsp2p/discover/table_test.go
- p2p/discover/table_util_test.go 32 additions, 16 deletionsp2p/discover/table_util_test.go
- p2p/discover/v4_udp.go 232 additions, 72 deletionsp2p/discover/v4_udp.go
- p2p/discover/v4_udp_lookup_test.go 2 additions, 2 deletionsp2p/discover/v4_udp_lookup_test.go
- p2p/discover/v4_udp_test.go 75 additions, 23 deletionsp2p/discover/v4_udp_test.go
Loading
Please register or sign in to comment