From 2e7f98a3717ebb287e1af0311b427f76ec58ea05 Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Wed, 2 Dec 2020 16:54:49 -0800 Subject: [PATCH] Fix docs --- src/blockchain/electrum.rs | 2 ++ src/wallet/mod.rs | 4 ++-- src/wallet/tx_builder.rs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/blockchain/electrum.rs b/src/blockchain/electrum.rs index 8b70e7af..0d35c37e 100644 --- a/src/blockchain/electrum.rs +++ b/src/blockchain/electrum.rs @@ -165,7 +165,9 @@ pub struct ElectrumBlockchainConfig { pub url: String, /// URL of the socks5 proxy server or a Tor service pub socks5: Option, + /// Request retry count pub retry: u8, + /// Request timeout (seconds) pub timeout: u8, } diff --git a/src/wallet/mod.rs b/src/wallet/mod.rs index 82696c58..1c3f5198 100644 --- a/src/wallet/mod.rs +++ b/src/wallet/mod.rs @@ -78,8 +78,8 @@ pub type OfflineWallet = Wallet; /// 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. /// diff --git a/src/wallet/tx_builder.rs b/src/wallet/tx_builder.rs index f278acdf..2b0c8e5b 100644 --- a/src/wallet/tx_builder.rs +++ b/src/wallet/tx_builder.rs @@ -366,7 +366,7 @@ impl, 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