From 561ed8df3ccdd1c383dc482db56bb84a416f8af3 Mon Sep 17 00:00:00 2001 From: rakita Date: Wed, 24 Mar 2021 15:15:10 +0100 Subject: [PATCH] fix miner_author by adding dummy msg --- bin/oe/account_utils.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/oe/account_utils.rs b/bin/oe/account_utils.rs index 405aa917c..4b9415466 100644 --- a/bin/oe/account_utils.rs +++ b/bin/oe/account_utils.rs @@ -71,7 +71,7 @@ mod accounts { #[cfg(feature = "accounts")] mod accounts { use super::*; - use crate::upgrade::upgrade_key_location; + use crate::{ethereum_types::H256, upgrade::upgrade_key_location}; use std::str::FromStr; pub use crate::accounts::AccountProvider; @@ -198,7 +198,8 @@ mod accounts { engine_signer, password.clone(), ); - if signer.sign(Default::default()).is_ok() { + // sign dummy msg to check if password and account can be used. + if signer.sign(H256::from_low_u64_be(1)).is_ok() { author = Some(::ethcore::miner::Author::Sealer(Box::new(signer))); } }