Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Insert dev account before unlocking #9813

Merged
merged 1 commit into from
Oct 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions parity/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,11 @@ fn prepare_account_provider(spec: &SpecType, dirs: &Directories, data_dir: &str,
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 {
// Check if the account exists
if !account_provider.has_account(a) {
Expand All @@ -973,11 +978,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)
}

Expand Down