MCPcopy Create free account
hub / github.com/ethereum/node-crawler / Hello

Struct Hello

pkg/crawler/connection.go:54–63  ·  view source on GitHub ↗

Hello is the RLP structure of the protocol handshake.

Source from the content-addressed store, hash-verified

52
53// Hello is the RLP structure of the protocol handshake.
54type 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
65func (msg Hello) Code() int { return 0x00 }
66func (msg Hello) ReqID() uint64 { return 0 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected