Explorar o código

initialize walletdb when darkfid start

ghassmo %!s(int64=4) %!d(string=hai) anos
pai
achega
fecbb7894b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/bin/darkfid.rs

+ 1 - 0
src/bin/darkfid.rs

@@ -32,6 +32,7 @@ async fn start(executor: Arc<Executor<'_>>, config: Arc<DarkfidConfig>) -> Resul
     let spend_params_path = join_config_path(&PathBuf::from("spend.params"))?;
 
     if let Err(_) = wallet.get_private_keys() {
+        wallet.init_db()?;
         wallet.key_gen()?;
     }