p2p/discover/v4wire: use optional RLP field for EIP-868 seq (#3963)
This changes the definitions of Ping and Pong, adding an optional field for the sequence number. This field was previously encoded/decoded using the "tail" struct tag, but using "optional" is much nicer. see https://github.com/ethereum/go-ethereum/pull/22842 Co-authored-by:Felix Lange <fjl@twurst.com>
Showing
- p2p/discover/v4_udp.go 3 additions, 7 deletionsp2p/discover/v4_udp.go
- p2p/discover/v4_udp_test.go 4 additions, 4 deletionsp2p/discover/v4_udp_test.go
- p2p/discover/v4wire/v4wire.go 8 additions, 16 deletionsp2p/discover/v4wire/v4wire.go
- p2p/discover/v4wire/v4wire_test.go 2 additions, 22 deletionsp2p/discover/v4wire/v4wire_test.go
Loading
Please register or sign in to comment