diff --git a/src/network/message_blockdata.rs b/src/network/message_blockdata.rs index 104b1195..3f4c1954 100644 --- a/src/network/message_blockdata.rs +++ b/src/network/message_blockdata.rs @@ -27,7 +27,7 @@ use consensus::encode::{self, Decodable, Encodable}; use hash_types::{BlockHash, Txid, Wtxid}; /// An inventory item. -#[derive(PartialEq, Eq, Clone, Debug, Copy, Hash)] +#[derive(PartialEq, Eq, Clone, Debug, Copy, Hash, PartialOrd, Ord)] pub enum Inventory { /// Error --- these inventories can be ignored Error,