Module zebra_network::peer::handshake
source ยท Expand description
Initial Handshake
s with Zebra peers over a PeerTransport
.
Structsยง
- A builder for
Handshake
. - The metadata for a peer connection.
- A [
Service
] that handshakes with a remote peer and constructs a client/server pair. - A handshake request. Contains the information needed to handshake with the peer.
Enumsยง
- The peer address that we are handshaking with.
Functionsยง
- Get an unspecified IPv4 address for
network
- If
result.is_err()
, markconnected_addr
as failed usingaddress_book_updater
. - Mark
connected_addr
as shut down usingaddress_book_updater
. - heartbeat_
timeout ๐Wrapfut
in a timeout, handing any inner or outer errors usinghandle_heartbeat_error
. - Negotiate the Zcash network protocol version with the remote peer at
connected_addr
, using the connectionpeer_conn
. - Register any advertised or missing inventory in
msg
forconnected_addr
. - send_
one_ ๐heartbeat Send one heartbeat usingserver_tx
. - Send periodical heartbeats to
server_tx
, and update the peer status throughheartbeat_ts_collector
. - Send periodical heartbeats to
server_tx
, and update the peer status throughheartbeat_ts_collector
.