From 8a36b6d4b5126943c7cba22439eac6a01357e4b9 Mon Sep 17 00:00:00 2001 From: Sosthene Date: Mon, 12 Aug 2024 16:38:16 +0200 Subject: [PATCH] Save wallet to disk at creation --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 0191510..34ae3e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -385,6 +385,8 @@ async fn main() -> Result<()> { }) .expect("Failed to initialize WALLET"); + WALLET.get().unwrap().save().unwrap(); + if last_scan < current_tip { log::info!("Scanning for our outputs"); scan_blocks(current_tip - last_scan, &config.electrum_url)?;