Просмотр исходного кода

blockchain/header_store: Derive Hash for HeaderHash

x 8 месяцев назад
Родитель
Сommit
e5105c6194
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/blockchain/header_store.rs

+ 1 - 1
src/blockchain/header_store.rs

@@ -45,7 +45,7 @@ pub enum PowData {
     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.
 pub struct HeaderHash(pub [u8; 32]);