From: Alec Chen Date: Thu, 5 Jan 2023 01:36:13 +0000 (-0600) Subject: Fix testnet datadir path X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=90d81411aaf6b7745fb7b32c5c83dc0791337583;p=ldk-sample Fix testnet datadir path --- diff --git a/src/args.rs b/src/args.rs index deb1704..440aa8f 100644 --- a/src/args.rs +++ b/src/args.rs @@ -175,7 +175,7 @@ fn get_cookie_path( }; let data_dir_path_with_net = match network { - Some(Network::Testnet) => data_dir_path.join("testnet"), + Some(Network::Testnet) => data_dir_path.join("testnet3"), Some(Network::Regtest) => data_dir_path.join("regtest"), Some(Network::Signet) => data_dir_path.join("signet"), _ => data_dir_path, @@ -279,7 +279,7 @@ mod rpc_auth_tests { Some((TEST_DATA_DIR, true)), Some(Network::Testnet), None, - env::home_dir().unwrap().join(TEST_DATA_DIR).join("testnet").join(".cookie"), + env::home_dir().unwrap().join(TEST_DATA_DIR).join("testnet3").join(".cookie"), ), ( Some((TEST_DATA_DIR, false)),