From 90d81411aaf6b7745fb7b32c5c83dc0791337583 Mon Sep 17 00:00:00 2001 From: Alec Chen Date: Wed, 4 Jan 2023 19:36:13 -0600 Subject: [PATCH] Fix testnet datadir path --- src/args.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)), -- 2.39.5