From b0f7b320d60c826a944acb1d736dc09a1de8ac9c Mon Sep 17 00:00:00 2001 From: Wei Tang Date: Fri, 26 Oct 2018 18:05:18 +0800 Subject: [PATCH] Insert dev account before unlocking --- parity/run.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parity/run.rs b/parity/run.rs index 126ef9d75ef..a87c6d4ed81 100644 --- a/parity/run.rs +++ b/parity/run.rs @@ -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) { @@ -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) }