Skip to content

Commit 70bcc7f

Browse files
committed
switch back to use bitcoincore-rpc, remove create_wallet descriptor parameter because it's not yet supported
1 parent 96eae38 commit 70bcc7f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ documentation = "https://docs.rs/bitcoind/"
99
edition = "2018"
1010

1111
[dependencies]
12-
core-rpc = "0.15"
12+
bitcoincore-rpc = "0.14.0"
1313
tempfile = "3.1"
1414
log = "0.4"
1515
home = "0.5.3" # use same ver in build-dep

src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//! Utility to run a regtest bitcoind process, useful in integration testing environment
77
//!
88
//! ```no_run
9-
//! use core_rpc::RpcApi;
9+
//! use bitcoincore_rpc::RpcApi;
1010
//! let bitcoind = bitcoind::BitcoinD::new("/usr/local/bin/bitcoind").unwrap();
1111
//! assert_eq!(0, bitcoind.client.get_blockchain_info().unwrap().blocks);
1212
//! ```
@@ -24,7 +24,7 @@ use std::time::Duration;
2424
use std::{env, thread};
2525
use tempfile::TempDir;
2626

27-
pub extern crate core_rpc as bitcoincore_rpc;
27+
pub extern crate bitcoincore_rpc;
2828
pub extern crate tempfile;
2929

3030
/// Struct representing the bitcoind process with related information
@@ -212,7 +212,7 @@ impl BitcoinD {
212212
// the call is succesfull not in the returned value.
213213
if client_base.call::<Value>("getblockchaininfo", &[]).is_ok() {
214214
client_base
215-
.create_wallet("default", None, None, None, None, None)
215+
.create_wallet("default", None, None, None, None)
216216
.unwrap();
217217
break Client::new(&node_url_default, Auth::CookieFile(cookie_file.clone()))
218218
.unwrap();
@@ -266,7 +266,7 @@ impl BitcoinD {
266266
pub fn create_wallet<T: AsRef<str>>(&self, wallet: T) -> Result<Client, Error> {
267267
let _ = self
268268
.client
269-
.create_wallet(wallet.as_ref(), None, None, None, None, None)?;
269+
.create_wallet(wallet.as_ref(), None, None, None, None)?;
270270
Ok(Client::new(
271271
&self.rpc_url_with_wallet(wallet),
272272
Auth::CookieFile(self.params.cookie_file.clone()),

0 commit comments

Comments
 (0)