p2p/discover: fixup for "tail"

This commit is contained in:
Felix Lange 2016-02-19 01:10:47 +01:00
parent 99fe66973f
commit a62f7424f6

View file

@ -68,7 +68,7 @@ type (
From, To rpcEndpoint
Expiration uint64
// Ignore additional fields (for forward compatibility).
Rest []rlp.RawValue `rlp:".."`
Rest []rlp.RawValue `rlp:"tail"`
}
// pong is the reply to ping.
@ -81,7 +81,7 @@ type (
ReplyTok []byte // This contains the hash of the ping packet.
Expiration uint64 // Absolute timestamp at which the packet becomes invalid.
// Ignore additional fields (for forward compatibility).
Rest []rlp.RawValue `rlp:".."`
Rest []rlp.RawValue `rlp:"tail"`
}
// findnode is a query for nodes close to the given target.
@ -89,7 +89,7 @@ type (
Target NodeID // doesn't need to be an actual public key
Expiration uint64
// Ignore additional fields (for forward compatibility).
Rest []rlp.RawValue `rlp:".."`
Rest []rlp.RawValue `rlp:"tail"`
}
// reply to findnode
@ -97,7 +97,7 @@ type (
Nodes []rpcNode
Expiration uint64
// Ignore additional fields (for forward compatibility).
Rest []rlp.RawValue `rlp:".."`
Rest []rlp.RawValue `rlp:"tail"`
}
rpcNode struct {