diff --git a/zebra-network/src/protocol/external/codec.rs b/zebra-network/src/protocol/external/codec.rs index 8da8e8105..65f10f876 100644 --- a/zebra-network/src/protocol/external/codec.rs +++ b/zebra-network/src/protocol/external/codec.rs @@ -79,12 +79,14 @@ impl Builder { } /// Configure the codec for the given [`Version`]. + #[allow(dead_code)] pub fn for_version(mut self, version: Version) -> Self { self.version = version; self } /// Configure the codec's maximum accepted payload size, in bytes. + #[allow(dead_code)] pub fn with_max_body_len(mut self, len: usize) -> Self { self.max_len = len; self diff --git a/zebra-network/src/protocol/external/types.rs b/zebra-network/src/protocol/external/types.rs index 06b5380c6..2c4669287 100644 --- a/zebra-network/src/protocol/external/types.rs +++ b/zebra-network/src/protocol/external/types.rs @@ -59,6 +59,7 @@ impl Version { /// Returns the current minimum protocol version for `network` and `height`. /// /// Returns None if the network has no branch id at this height. + #[allow(dead_code)] pub fn current_min(network: Network, height: BlockHeight) -> Version { let network_upgrade = NetworkUpgrade::current(network, height); Version::min_for_upgrade(network, network_upgrade)