Hello is the RLP structure of the protocol handshake.
| 52 | |
| 53 | // Hello is the RLP structure of the protocol handshake. |
| 54 | type Hello struct { |
| 55 | Version uint64 |
| 56 | Name string |
| 57 | Caps []p2p.Cap |
| 58 | ListenPort uint64 |
| 59 | ID []byte // secp256k1 public key |
| 60 | |
| 61 | // Ignore additional fields (for forward compatibility). |
| 62 | Rest []rlp.RawValue `rlp:"tail"` |
| 63 | } |
| 64 | |
| 65 | func (msg Hello) Code() int { return 0x00 } |
| 66 | func (msg Hello) ReqID() uint64 { return 0 } |
nothing calls this directly
no outgoing calls
no test coverage detected