Don't run dev light client as validator (#4757)

A light client can not be a validator, so we should not set `authority
== true` in dev mode.
This commit is contained in:
Bastian Köcher
2020-01-29 09:52:54 +01:00
committed by GitHub
parent 9a6d9f0db5
commit 34c1c4b954
2 changed files with 9 additions and 4 deletions
+4 -1
View File
@@ -417,7 +417,10 @@ pub struct RunCmd {
pub no_grandpa: bool,
/// Experimental: Run in light client mode.
#[structopt(long = "light")]
#[structopt(
long = "light",
conflicts_with_all = &[ "validator" ]
)]
pub light: bool,
/// Listen to all RPC interfaces.