Module handshake

Source
Expand description

Initial Handshakes with Zebra peers over a PeerTransport.

Structs§

Builder
A builder for Handshake.
ConnectionInfo
The metadata for a peer connection.
Handshake
A [Service] that handshakes with a remote peer and constructs a client/server pair.
HandshakeRequest
A handshake request. Contains the information needed to handshake with the peer.

Enums§

ConnectedAddr
The peer address that we are handshaking with.

Functions§

get_unspecified_ipv4_addr
Get an unspecified IPv4 address for network
handle_heartbeat_error 🔒
If result.is_err(), mark connected_addr as failed using address_book_updater.
handle_heartbeat_shutdown 🔒
Mark connected_addr as shut down using address_book_updater.
heartbeat_timeout 🔒
Wrap fut in a timeout, handing any inner or outer errors using handle_heartbeat_error.
negotiate_version
Negotiate the Zcash network protocol version with the remote peer at connected_addr, using the connection peer_conn.
register_inventory_status 🔒
Register any advertised or missing inventory in msg for connected_addr.
send_one_heartbeat 🔒
Send one heartbeat using server_tx.
send_periodic_heartbeats_run_loop 🔒
Send periodical heartbeats to server_tx, and update the peer status through heartbeat_ts_collector.
send_periodic_heartbeats_with_shutdown_handle 🔒
Send periodical heartbeats to server_tx, and update the peer status through heartbeat_ts_collector.