From a0b852863327137bedc0ff46fa76473d3fc77750 Mon Sep 17 00:00:00 2001 From: Vadim Date: Thu, 14 Sep 2023 23:27:34 +0200 Subject: [PATCH] feat: make handshake struct public --- chain/network/src/network_protocol/borsh.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/chain/network/src/network_protocol/borsh.rs b/chain/network/src/network_protocol/borsh.rs index 32d3f8d1cff..9d319e8ed6e 100644 --- a/chain/network/src/network_protocol/borsh.rs +++ b/chain/network/src/network_protocol/borsh.rs @@ -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, + pub sender_listen_port: Option, /// 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.