Correct directory path for spendables sweep
authorMatt Corallo <git@bluematt.me>
Sun, 20 Aug 2023 02:13:46 +0000 (02:13 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 20 Aug 2023 02:13:46 +0000 (02:13 +0000)
src/sweep.rs

index a9ad6bdd8e3c0561959f251325b068703822551c..ad1e9ef4d8698993c2615fd7e0fccfd46114a6bb 100644 (file)
@@ -36,7 +36,7 @@ pub(crate) async fn periodic_sweep(
        // Note that if you more tightly integrate your wallet with LDK you may not need to do this -
        // these outputs can just be treated as normal outputs during coin selection.
        let pending_spendables_dir =
-               format!("{}/{}", crate::PENDING_SPENDABLE_OUTPUT_DIR, ldk_data_dir);
+               format!("{}/{}", ldk_data_dir, crate::PENDING_SPENDABLE_OUTPUT_DIR);
        let processing_spendables_dir = format!("{}/processing_spendable_outputs", ldk_data_dir);
        let spendables_dir = format!("{}/spendable_outputs", ldk_data_dir);