Merge pull request #3096 from alecchendev/2024-06-drop-one-signer-call
[rust-lightning] / lightning-transaction-sync / src / esplora.rs
index 538918ada953f74e8170864be1a20f7a6e3bf7ad..2e35a150c558a2123706ca06af7b56c4952ff85e 100644 (file)
@@ -51,7 +51,7 @@ where
        pub fn new(server_url: String, logger: L) -> Self {
                let builder = Builder::new(&server_url);
                #[cfg(not(feature = "async-interface"))]
-               let client = builder.build_blocking().unwrap();
+               let client = builder.build_blocking();
                #[cfg(feature = "async-interface")]
                let client = builder.build_async().unwrap();
 
@@ -59,6 +59,8 @@ where
        }
 
        /// Returns a new [`EsploraSyncClient`] object using the given Esplora client.
+       ///
+       /// This is not exported to bindings users as the underlying client from BDK is not exported.
        pub fn from_client(client: EsploraClientType, logger: L) -> Self {
                let sync_state = MutexType::new(SyncState::new());
                let queue = std::sync::Mutex::new(FilterQueue::new());
@@ -397,6 +399,8 @@ where
        }
 
        /// Returns a reference to the underlying esplora client.
+       ///
+       /// This is not exported to bindings users as the underlying client from BDK is not exported.
        pub fn client(&self) -> &EsploraClientType {
                &self.client
        }