initialize walletdb when darkfid start

This commit is contained in:
ghassmo
2021-09-10 15:35:56 +03:00
parent bbe0ce5643
commit fecbb7894b

View File

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