Skip to content

Commit 83697fc

Browse files
committed
create descriptor based wallet by default
1 parent ce6fb18 commit 83697fc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ bitcoin_hashes = "0.10"
2323
flate2 = "1.0"
2424
tar = "0.4"
2525

26+
[patch.crates-io]
27+
core-rpc = { git="https://github.com/sandipndev/rust-bitcoincore-rpc", branch="bech32m-support" }
28+
2629
[features]
2730
"0_21_1" = []
2831
"0_21_0" = []

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl BitcoinD {
188188
// the call is succesfull not in the returned value.
189189
if client_base.call::<Value>("getblockchaininfo", &[]).is_ok() {
190190
client_base
191-
.create_wallet("default", None, None, None, None)
191+
.create_wallet("default", None, None, None, None, Some(true))
192192
.unwrap();
193193
break Client::new(&node_url_default, Auth::CookieFile(cookie_file.clone()))
194194
.unwrap();
@@ -242,7 +242,7 @@ impl BitcoinD {
242242
pub fn create_wallet<T: AsRef<str>>(&self, wallet: T) -> Result<Client, Error> {
243243
let _ = self
244244
.client
245-
.create_wallet(wallet.as_ref(), None, None, None, None)?;
245+
.create_wallet(wallet.as_ref(), None, None, None, None, None)?;
246246
Ok(Client::new(
247247
&self.rpc_url_with_wallet(wallet),
248248
Auth::CookieFile(self.params.cookie_file.clone()),

0 commit comments

Comments
 (0)