Implement `Hash` for `BestBlock`
authorElias Rohrer <dev@tnull.de>
Thu, 7 Mar 2024 16:35:38 +0000 (17:35 +0100)
committerElias Rohrer <dev@tnull.de>
Thu, 7 Mar 2024 16:35:38 +0000 (17:35 +0100)
lightning/src/chain/mod.rs

index 82d64c5a3e627846f2916740eb751c39a1a08cd6..356520b5cba86e647acdec77fd0cb86b683e7d58 100644 (file)
@@ -31,7 +31,7 @@ pub(crate) mod onchaintx;
 pub(crate) mod package;
 
 /// The best known block as identified by its hash and height.
-#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
 pub struct BestBlock {
        /// The block's hash
        pub block_hash: BlockHash,