Skip to content

Commit

Permalink
Downgrade rust-bitcoin and bitcoincore-rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-belcher committed Feb 18, 2022
1 parent 77961a7 commit e3bca5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bitcoincore-rpc = "0.14"
bitcoincore-rpc = "0.13"
#bitcoincore-rpc = {git="https://github.com/rust-bitcoin/rust-bitcoincore-rpc"}
bitcoin-wallet = "1.1.0"
bitcoin = "0.27"
bitcoin = "0.26"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.16.1", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion src/directory_servers.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//configure this with your own tor port
pub const TOR_ADDR: &str = "127.0.0.1:9150";
pub const TOR_ADDR: &str = "127.0.0.1:9050";

use bitcoin::Network;

Expand Down
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const RPC_CREDENTIALS: Option<(&str, &str)> = Some(("regtestrpcuser", "regtestrpcpass"));
//None; // use Bitcoin Core cookie-based authentication

const RPC_HOSTPORT: &str = "localhost:18443";
const RPC_WALLET: &str = "teleport";
const RPC_HOSTPORT: &str = "localhost:18443";
//default ports: mainnet=8332, testnet=18332, regtest=18443, signet=38332

extern crate bitcoin;
extern crate bitcoin_wallet;
Expand Down Expand Up @@ -57,7 +58,7 @@ pub fn get_bitcoin_rpc() -> Result<Client, Error> {
}
};
let rpc = Client::new(
&format!("http://{}/wallet/{}", RPC_HOSTPORT, RPC_WALLET),
format!("http://{}/wallet/{}", RPC_HOSTPORT, RPC_WALLET),
auth,
)?;
rpc.get_blockchain_info()?;
Expand Down

0 comments on commit e3bca5f

Please sign in to comment.