mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 13:07:56 +00:00
sc-cli: add no-beefy flag to cli config (#14754)
Signed-off-by: Adrian Catangiu <adrian@parity.io>
This commit is contained in:
@@ -51,6 +51,10 @@ pub struct RunCmd {
|
||||
#[arg(long)]
|
||||
pub no_grandpa: bool,
|
||||
|
||||
/// Disable BEEFY voter when running in validator mode, otherwise disable the BEEFY observer.
|
||||
#[arg(long)]
|
||||
pub no_beefy: bool,
|
||||
|
||||
/// Listen to all RPC interfaces.
|
||||
/// Default is local. Note: not all RPC methods are safe to be exposed publicly. Use an RPC
|
||||
/// proxy server to filter out dangerous methods. More details:
|
||||
@@ -313,6 +317,10 @@ impl CliConfiguration for RunCmd {
|
||||
Ok(self.no_grandpa)
|
||||
}
|
||||
|
||||
fn disable_beefy(&self) -> Result<bool> {
|
||||
Ok(self.no_beefy)
|
||||
}
|
||||
|
||||
fn rpc_max_connections(&self) -> Result<u32> {
|
||||
Ok(self.rpc_max_connections)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user