Explorar el Código

initialize walletdb when darkfid start

ghassmo hace 4 años
padre
commit
fecbb7894b
Se han modificado 1 ficheros con 1 adiciones y 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()?;
     }