mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
client: Fix automatic keypair generation.
This commit is contained in:
@@ -73,7 +73,7 @@ impl Client {
|
||||
wallet.init_db().await?;
|
||||
|
||||
// Generate a new keypair if we don't have any.
|
||||
if wallet.get_keypairs().await?.is_empty() {
|
||||
if wallet.get_keypairs().await.is_err() {
|
||||
wallet.key_gen().await?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user