Implement PartialOrd and Ord for Inventory
This commit is contained in:
parent
3f465d56eb
commit
f1b0f263ce
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue