mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 06:38:12 -05:00
initialize walletdb when darkfid start
This commit is contained in:
@@ -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()?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user