OnionMessenger: support generating peer connection events.
[rust-lightning] / lightning / src / chain / mod.rs
index 5d367bd4afa49d8a1a73306534f2d7e1bb4bf6ab..e22ccca986aacf622778c7c4c3c5320b3815e341 100644 (file)
@@ -21,6 +21,7 @@ use crate::ln::ChannelId;
 use crate::sign::ecdsa::WriteableEcdsaChannelSigner;
 use crate::chain::transaction::{OutPoint, TransactionData};
 
+#[allow(unused_imports)]
 use crate::prelude::*;
 
 pub mod chaininterface;
@@ -31,7 +32,7 @@ pub(crate) mod onchaintx;
 pub(crate) mod package;
 
 /// The best known block as identified by its hash and height.
-#[derive(Clone, Copy, PartialEq, Eq)]
+#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
 pub struct BestBlock {
        /// The block's hash
        pub block_hash: BlockHash,