Save wallet to disk at creation

This commit is contained in:
Sosthene 2024-08-12 16:38:16 +02:00 committed by Nicolas Cantu
parent 4def55ccab
commit 8a36b6d4b5

View File

@ -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)?;