pub struct RunCmd {
pub base: RunCmd,
pub collator: bool,
pub relay_chain_rpc_urls: Vec<Url>,
pub experimental_max_pov_percentage: Option<u32>,
pub no_dht_bootnode: bool,
pub no_dht_bootnode_discovery: bool,
}Expand description
The run command used to run a node.
Fields§
§base: RunCmdThe cumulus RunCmd inherents from sc_cli’s
collator: boolRun node as collator.
Note that this is the same as running with --validator.
relay_chain_rpc_urls: Vec<Url>Creates a less resource-hungry node that retrieves relay chain data from an RPC endpoint.
The provided URLs should point to RPC endpoints of the relay chain. This node connects to the remote nodes following the order they were specified in. If the connection fails, it attempts to connect to the next endpoint in the list.
Note: This option doesn’t stop the node from connecting to the relay chain network but reduces bandwidth use.
experimental_max_pov_percentage: Option<u32>EXPERIMENTAL: This is meant to be used only if collator is overshooting the PoV size, and building blocks that do not fit in the max_pov_size. It is a percentage of the max_pov_size configuration of the relay-chain.
It will be removed once https://github.com/paritytech/polkadot-sdk/issues/6020 is fixed.
no_dht_bootnode: boolDisable embedded DHT bootnode.
Do not advertise the node as a parachain bootnode on the relay chain DHT.
no_dht_bootnode_discovery: boolDisable DHT bootnode discovery.
Disable discovery of the parachain bootnodes via the relay chain DHT.
Implementations§
Source§impl RunCmd
impl RunCmd
Sourcepub fn normalize(&self) -> NormalizedRunCmd
pub fn normalize(&self) -> NormalizedRunCmd
Create a NormalizedRunCmd which merges the collator cli argument into validator to
have only one.
Sourcepub fn collator_options(&self) -> CollatorOptions
pub fn collator_options(&self) -> CollatorOptions
Create CollatorOptions representing options only relevant to parachain collator nodes
Trait Implementations§
Source§impl CommandFactory for RunCmd
impl CommandFactory for RunCmd
Source§impl FromArgMatches for RunCmd
impl FromArgMatches for RunCmd
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for RunCmd
impl Parser for RunCmd
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for RunCmd
impl RefUnwindSafe for RunCmd
impl Send for RunCmd
impl Sync for RunCmd
impl Unpin for RunCmd
impl UnwindSafe for RunCmd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
Source§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
Source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
Source§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T. Read moreSource§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from.Source§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T.