Skip to content

Commit

Permalink
feat: make handshake struct public
Browse files Browse the repository at this point in the history
  • Loading branch information
n00m4d committed Sep 14, 2023
1 parent 0badcff commit a0b8528
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions chain/network/src/network_protocol/borsh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ use std::fmt::Formatter;
/// This replaces deprecated handshake `HandshakeV2`.
pub struct Handshake {
/// Current protocol version.
pub(crate) protocol_version: u32,
pub protocol_version: u32,
/// Oldest supported protocol version.
pub(crate) oldest_supported_version: u32,
pub oldest_supported_version: u32,
/// Sender's peer id.
pub(crate) sender_peer_id: PeerId,
pub sender_peer_id: PeerId,
/// Receiver's peer id.
pub(crate) target_peer_id: PeerId,
pub target_peer_id: PeerId,
/// Sender's listening addr.
pub(crate) sender_listen_port: Option<u16>,
pub sender_listen_port: Option<u16>,
/// Peer's chain information.
pub(crate) sender_chain_info: PeerChainInfoV2,
pub sender_chain_info: PeerChainInfoV2,
/// Represents new `edge`. Contains only `none` and `Signature` from the sender.
pub(crate) partial_edge_info: PartialEdgeInfo,
pub partial_edge_info: PartialEdgeInfo,
}

/// Struct describing the layout for Handshake.
Expand Down

0 comments on commit a0b8528

Please sign in to comment.