From edb22e1ab9818c4f9efe85c7752c6048589489c9 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Thu, 7 Mar 2024 17:35:38 +0100 Subject: [PATCH] Implement `Hash` for `BestBlock` --- lightning/src/chain/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/chain/mod.rs b/lightning/src/chain/mod.rs index 82d64c5a..356520b5 100644 --- a/lightning/src/chain/mod.rs +++ b/lightning/src/chain/mod.rs @@ -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, -- 2.30.2