You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now the default value of mining.disable is true and could be
set to false not through the no-miner option but through not
giving both author and engine signer options.
Some(ref engine_signer) => match miner.set_author((*engine_signer).into_address()){
139
-
Err(AccountProviderError::NotUnlocked) => {
140
-
returnErr(
141
-
"The account is not unlocked. Specify the password path using --password-path option."
142
-
.to_string(),
143
-
)
144
-
}
145
-
Err(e) => returnErr(format!("{}", e)),
146
-
_ => (),
147
-
},
148
-
None => {
149
-
returnErr("The engine signer is missing. Specify the engine signer using --engine-signer option."
150
-
.to_string())
129
+
match miner.engine_type(){
130
+
EngineType::PoW => match&config.mining.author{
131
+
Some(ref author) => {
132
+
miner.set_author((*author).into_address()).expect("set_author never fails when PoW is used")
133
+
}
134
+
Noneif config.mining.engine_signer.is_some() => returnErr("PoW type engine needs not an engine-signer but an author for mining. Specify the author using --author option.".to_string()),
0 commit comments