Implement PartialOrd and Ord for Inventory

This commit is contained in:
Steven Roose 2020-11-10 19:54:07 +00:00
parent 3f465d56eb
commit f1b0f263ce
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ use consensus::encode::{self, Decodable, Encodable};
use hash_types::{BlockHash, Txid, Wtxid}; use hash_types::{BlockHash, Txid, Wtxid};
/// An inventory item. /// An inventory item.
#[derive(PartialEq, Eq, Clone, Debug, Copy, Hash)] #[derive(PartialEq, Eq, Clone, Debug, Copy, Hash, PartialOrd, Ord)]
pub enum Inventory { pub enum Inventory {
/// Error --- these inventories can be ignored /// Error --- these inventories can be ignored
Error, Error,