p2p/discover/v4wire: use optional RLP field for EIP-868 seq (#22842)
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.
Showing
- p2p/discover/v4_udp.go 3 additions, 6 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, 15 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