Browse Source

blockchain/header_store: Derive Hash for HeaderHash

x 9 months ago
parent
commit
e5105c6194
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/blockchain/header_store.rs

+ 1 - 1
src/blockchain/header_store.rs

@@ -45,7 +45,7 @@ pub enum PowData {
     Monero(MoneroPowData),
     Monero(MoneroPowData),
 }
 }
 
 
-#[derive(Clone, Copy, Debug, Eq, PartialEq, SerialEncodable, SerialDecodable)]
+#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, SerialEncodable, SerialDecodable)]
 // We have to introduce a type rather than using an alias so we can restrict API access.
 // We have to introduce a type rather than using an alias so we can restrict API access.
 pub struct HeaderHash(pub [u8; 32]);
 pub struct HeaderHash(pub [u8; 32]);