From: Elias Rohrer Date: Thu, 7 Mar 2024 16:35:38 +0000 (+0100) Subject: Implement `Hash` for `BestBlock` X-Git-Tag: v0.0.123-beta~48^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=edb22e1ab9818c4f9efe85c7752c6048589489c9;p=rust-lightning Implement `Hash` for `BestBlock` --- diff --git a/lightning/src/chain/mod.rs b/lightning/src/chain/mod.rs index 82d64c5a3..356520b5c 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,