Merge pull request #517 from stevenroose/inv-ord

Implement PartialOrd and Ord for Inventory
This commit is contained in:
Elichai Turkel 2020-11-11 11:51:14 +02:00 committed by GitHub
commit ac7bf8099b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,