Skip to content

Commit

Permalink
Update to the latest rust-bitcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-belcher committed Feb 16, 2022
1 parent 55ad1d7 commit d92ef31
Show file tree
Hide file tree
Showing 3 changed files with 5 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.12.0"
bitcoincore-rpc = "0.14"
#bitcoincore-rpc = {git="https://github.com/rust-bitcoin/rust-bitcoincore-rpc"}
bitcoin-wallet = "1.1.0"
bitcoin = "0.25"
bitcoin = "0.27"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.16.1", features = ["full"] }
Expand Down
1 change: 1 addition & 0 deletions src/directory_servers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fn network_enum_to_string(network: Network) -> &'static str {
match network {
Network::Bitcoin => "mainnet",
Network::Testnet => "testnet",
Network::Signet => "signet",
Network::Regtest => panic!("dont use directory servers if using regtest"),
}
}
Expand Down
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ pub fn get_bitcoin_rpc() -> Result<Client, Error> {
}
};
let rpc = Client::new(
"http://localhost:18443/wallet/teleport"
//"http://localhost:18332/wallet/teleport"
.to_string(),
"http://localhost:18443/wallet/teleport",
//"http://localhost:18332/wallet/teleport",
auth,
)?;
rpc.get_blockchain_info()?;
Expand Down

0 comments on commit d92ef31

Please sign in to comment.