diff options
author | Antoine A <> | 2022-03-08 16:19:58 +0100 |
---|---|---|
committer | Antoine A <> | 2022-03-08 16:36:24 +0100 |
commit | 3d6220f5a2e60230a92d460154eb2b3565852dc2 (patch) | |
tree | 8ff2d64cd69dc27249235fe3abde10f1823ad4b4 /btc-wire | |
parent | 643cd6cf56acd87de54d2278ecfcf8c0266e3235 (diff) | |
download | depolymerization-3d6220f5a2e60230a92d460154eb2b3565852dc2.tar.gz depolymerization-3d6220f5a2e60230a92d460154eb2b3565852dc2.tar.bz2 depolymerization-3d6220f5a2e60230a92d460154eb2b3565852dc2.zip |
wire-gateway: support auth
Diffstat (limited to 'btc-wire')
-rw-r--r-- | btc-wire/src/btc_config.rs | 4 | ||||
-rw-r--r-- | btc-wire/src/lib.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/btc-wire/src/btc_config.rs b/btc-wire/src/btc_config.rs index 0c8114b..fa61c6f 100644 --- a/btc-wire/src/btc_config.rs +++ b/btc-wire/src/btc_config.rs @@ -87,14 +87,14 @@ impl BitcoinConfig { let port = if let Some(addr) = section.and_then(|s| s.get("rpcport")) { addr.parse() - .or_fail(|_| "bitcoin config value 'rpcport' is not a valid port number".into()) + .or_fail(|_| "bitcoin config 'rpcport' is not a valid port number".into()) } else { rpc_port(network) }; let addr = if let Some(addr) = section.and_then(|s| s.get("rpcbind")) { SocketAddr::from_str(addr) - .or_fail(|_| "bitcoin config value 'rpcbind' is not a valid socket address".into()) + .or_fail(|_| "bitcoin config 'rpcbind' is not a valid socket address".into()) } else { ([127, 0, 0, 1], port).into() }; diff --git a/btc-wire/src/lib.rs b/btc-wire/src/lib.rs index 0027073..4bc533e 100644 --- a/btc-wire/src/lib.rs +++ b/btc-wire/src/lib.rs @@ -202,7 +202,7 @@ fn config_bounce_fee(bounce_fee: &Option<String>, currency: CurrencyBtc) -> Amou .and_then(|a| taler_to_btc(&a, currency)) .or_fail(|a| { format!( - "config value BOUNCE_FEE={} is not a valid bitcoin amount: {}", + "config BOUNCE_FEE={} is not a valid bitcoin amount: {}", config, a ) }) |