]> git.bitcoin.ninja Git - ldk-sample/commitdiff
Fix testnet datadir path
authorAlec Chen <alecchendev@gmail.com>
Thu, 5 Jan 2023 01:36:13 +0000 (19:36 -0600)
committerAlec Chen <alecchendev@gmail.com>
Thu, 5 Jan 2023 01:36:13 +0000 (19:36 -0600)
src/args.rs

index deb1704109eac1a390cdad541775f0d89dec833c..440aa8f2a77bf4f9149b30e70f833549d94a2a88 100644 (file)
@@ -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)),