diff options
author | Antoine A <> | 2023-01-24 15:38:45 +0100 |
---|---|---|
committer | Antoine A <> | 2023-01-24 15:38:45 +0100 |
commit | 67c682100c7efcf58d53418c45e6611e5f6eab82 (patch) | |
tree | 0f2b5b95cb581e8e133e43aef338463721795c5d /btc-wire | |
parent | 4f2696c5fc72f2ba07ba5a5b4c9e51e1237d2a92 (diff) | |
download | depolymerization-67c682100c7efcf58d53418c45e6611e5f6eab82.tar.gz depolymerization-67c682100c7efcf58d53418c45e6611e5f6eab82.tar.bz2 depolymerization-67c682100c7efcf58d53418c45e6611e5f6eab82.zip |
Update dependencies
Diffstat (limited to 'btc-wire')
-rw-r--r-- | btc-wire/Cargo.toml | 13 | ||||
-rw-r--r-- | btc-wire/src/rpc.rs | 3 |
2 files changed, 9 insertions, 7 deletions
diff --git a/btc-wire/Cargo.toml b/btc-wire/Cargo.toml index 7be17c0..91d3722 100644 --- a/btc-wire/Cargo.toml +++ b/btc-wire/Cargo.toml @@ -16,16 +16,17 @@ bitcoin = { version = "0.29.2", features = [ "serde",
], default-features = false }
# Cli args parser
-clap = { version = "4.0.29", features = ["derive"] }
+clap = { version = "=4.0.32", features = ["derive"] }
+clap_lex = "=0.3.0"
# Bech32 encoding and decoding
bech32 = "0.9.1"
# Serialization library
-serde = { version = "1.0.149", features = ["derive"] }
-serde_json = "1.0.89"
-serde_repr = "0.1.9"
+serde = { version = "1.0.152", features = ["derive"] }
+serde_json = "1.0.91"
+serde_repr = "0.1.10"
# Error macros
-thiserror = "1.0.37"
-base64 = "0.20.0"
+thiserror = "1.0.38"
+base64 = "0.21.0"
# Common lib
common = { path = "../common" }
# Ini parser
diff --git a/btc-wire/src/rpc.rs b/btc-wire/src/rpc.rs index 9055233..9cbe320 100644 --- a/btc-wire/src/rpc.rs +++ b/btc-wire/src/rpc.rs @@ -25,6 +25,7 @@ //! //! bitcoincore RPC documentation: <https://bitcoincore.org/en/doc/23.0.0/> +use base64::{prelude::BASE64_STANDARD, Engine}; use bitcoin::{hashes::hex::ToHex, Address, Amount, BlockHash, SignedAmount, Txid}; use common::{log::log::error, password, reconnect::AutoReconnect}; use serde_json::{json, Value}; @@ -160,7 +161,7 @@ impl Rpc { last_call: Instant::now(), path, id: 0, - cookie: format!("Basic {}", base64::encode(token)), + cookie: format!("Basic {}", BASE64_STANDARD.encode(token)), conn, buf: Vec::new(), }) |