Save wallet to disk at creation
This commit is contained in:
parent
4def55ccab
commit
8a36b6d4b5
@ -385,6 +385,8 @@ async fn main() -> Result<()> {
|
|||||||
})
|
})
|
||||||
.expect("Failed to initialize WALLET");
|
.expect("Failed to initialize WALLET");
|
||||||
|
|
||||||
|
WALLET.get().unwrap().save().unwrap();
|
||||||
|
|
||||||
if last_scan < current_tip {
|
if last_scan < current_tip {
|
||||||
log::info!("Scanning for our outputs");
|
log::info!("Scanning for our outputs");
|
||||||
scan_blocks(current_tip - last_scan, &config.electrum_url)?;
|
scan_blocks(current_tip - last_scan, &config.electrum_url)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user