]> Untitled Git - bdk/commitdiff
Fix docs
authorSteve Myers <steve@notmandatory.org>
Thu, 3 Dec 2020 00:54:49 +0000 (16:54 -0800)
committerSteve Myers <steve@notmandatory.org>
Thu, 3 Dec 2020 00:57:59 +0000 (16:57 -0800)
src/blockchain/electrum.rs
src/wallet/mod.rs
src/wallet/tx_builder.rs

index 8b70e7afdf53d57b85633fb8fd255512d2e971c6..0d35c37e71a9412730f9e73d9db42dd303cd9a9e 100644 (file)
@@ -165,7 +165,9 @@ pub struct ElectrumBlockchainConfig {
     pub url: String,
     /// URL of the socks5 proxy server or a Tor service
     pub socks5: Option<String>,
+    /// Request retry count
     pub retry: u8,
+    /// Request timeout (seconds)
     pub timeout: u8,
 }
 
index 82696c58b366ba19ea9716492e4dccfa5b737a08..1c3f5198c9a19559fe35044c8b533daf272f796c 100644 (file)
@@ -78,8 +78,8 @@ pub type OfflineWallet<D> = Wallet<OfflineBlockchain, D>;
 
 /// A Bitcoin wallet
 ///
-/// A wallet takes descriptors, a [`database`](crate::database) and a
-/// [`blockchain`](crate::blockchain) and implements the basic functions that a Bitcoin wallets
+/// A wallet takes descriptors, a [`database`](trait@crate::database::Database) and a
+/// [`blockchain`](trait@crate::blockchain::Blockchain) and implements the basic functions that a Bitcoin wallets
 /// needs to operate, like [generating addresses](Wallet::get_new_address), [returning the balance](Wallet::get_balance),
 /// [creating transactions](Wallet::create_tx), etc.
 ///
index f278acdf558a92bf0f6037a8ceab3f71c569b722..2b0c8e5b683210d2f3cfacc06323aa6596bf8e9d 100644 (file)
@@ -366,7 +366,7 @@ impl<D: Database, Cs: CoinSelectionAlgorithm<D>, Ctx: TxBuilderContext> TxBuilde
         self
     }
 
-    /// Spend all the available inputs. This respects filters like [`unspendable`] and the change policy.
+    /// Spend all the available inputs. This respects filters like [`TxBuilder::unspendable`] and the change policy.
     pub fn drain_wallet(mut self) -> Self {
         self.drain_wallet = true;
         self