Merge pull request #139 from adityapk00/tx_compare

Implement sorting for TxIDs
This commit is contained in:
str4d
2019-11-04 16:29:59 +00:00
committed by GitHub

View File

@@ -26,7 +26,7 @@ const OVERWINTER_TX_VERSION: u32 = 3;
const SAPLING_VERSION_GROUP_ID: u32 = 0x892F2085;
const SAPLING_TX_VERSION: u32 = 4;
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
#[derive(Clone, Copy, Debug, PartialOrd, Ord, PartialEq, Eq, Hash)]
pub struct TxId(pub [u8; 32]);
impl fmt::Display for TxId {