diff --git a/src/network/message.rs b/src/network/message.rs index b0f399fa..3ed4c25c 100644 --- a/src/network/message.rs +++ b/src/network/message.rs @@ -33,6 +33,11 @@ use consensus::encode::{CheckedData, Decodable, Encodable, VarInt}; use consensus::{encode, serialize}; use consensus::encode::MAX_VEC_SIZE; +/// The maximum number of [Inventory] items in an `inv` message. +/// +/// This limit is not currently enforced by this implementation. +pub const MAX_INV_SIZE: usize = 50_000; + /// Serializer for command string #[derive(PartialEq, Eq, Clone, Debug)] pub struct CommandString(Cow<'static, str>);