Insert dev account before unlocking (#9813)
This commit is contained in:
parent
879e7305ca
commit
ff13c9c186
@ -959,6 +959,11 @@ fn prepare_account_provider(spec: &SpecType, dirs: &Directories, data_dir: &str,
|
|||||||
account_settings,
|
account_settings,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Add development account if running dev chain:
|
||||||
|
if let SpecType::Dev = *spec {
|
||||||
|
insert_dev_account(&account_provider);
|
||||||
|
}
|
||||||
|
|
||||||
for a in cfg.unlocked_accounts {
|
for a in cfg.unlocked_accounts {
|
||||||
// Check if the account exists
|
// Check if the account exists
|
||||||
if !account_provider.has_account(a) {
|
if !account_provider.has_account(a) {
|
||||||
@ -975,11 +980,6 @@ fn prepare_account_provider(spec: &SpecType, dirs: &Directories, data_dir: &str,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add development account if running dev chain:
|
|
||||||
if let SpecType::Dev = *spec {
|
|
||||||
insert_dev_account(&account_provider);
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(account_provider)
|
Ok(account_provider)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user