Skip to content

Commit 727c6ef

Browse files
committed
switch back to use bitcoincore-rpc, remove create_wallet descriptor parameter because it's not yet supported
1 parent d0c1cd8 commit 727c6ef

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::thread;
2424
use std::time::Duration;
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
@@ -194,7 +194,7 @@ impl BitcoinD {
194194
// the call is succesfull not in the returned value.
195195
if client_base.call::<Value>("getblockchaininfo", &[]).is_ok() {
196196
client_base
197-
.create_wallet("default", None, None, None, None, None)
197+
.create_wallet("default", None, None, None, None)
198198
.unwrap();
199199
break Client::new(&node_url_default, Auth::CookieFile(cookie_file.clone()))
200200
.unwrap();
@@ -248,7 +248,7 @@ impl BitcoinD {
248248
pub fn create_wallet<T: AsRef<str>>(&self, wallet: T) -> Result<Client, Error> {
249249
let _ = self
250250
.client
251-
.create_wallet(wallet.as_ref(), None, None, None, None, None)?;
251+
.create_wallet(wallet.as_ref(), None, None, None, None)?;
252252
Ok(Client::new(
253253
&self.rpc_url_with_wallet(wallet),
254254
Auth::CookieFile(self.params.cookie_file.clone()),

0 commit comments

Comments
 (0)