From f1b0f263ce478c470ec4eda384244343bb8a4a01 Mon Sep 17 00:00:00 2001 From: Steven Roose Date: Tue, 10 Nov 2020 19:54:07 +0000 Subject: [PATCH] Implement PartialOrd and Ord for Inventory --- src/network/message_blockdata.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,