pub struct Start {Show 25 fields
pub network: u16,
pub validator: bool,
pub prover: bool,
pub client: bool,
pub private_key: Option<String>,
pub private_key_file: Option<PathBuf>,
pub node: Option<SocketAddr>,
pub bft: Option<SocketAddr>,
pub peers: String,
pub validators: String,
pub allow_external_peers: bool,
pub rotate_external_peers: bool,
pub rest: Option<SocketAddr>,
pub rest_rps: u32,
pub norest: bool,
pub nodisplay: bool,
pub verbosity: u8,
pub logfile: PathBuf,
pub storage: Option<PathBuf>,
pub cdn: Option<String>,
pub nocdn: bool,
pub dev: Option<u16>,
pub dev_num_validators: Option<u16>,
pub no_dev_txs: bool,
pub dev_bonded_balances: Option<BondedBalances>,
}Expand description
Starts the snarkOS node.
Fields§
§network: u16Specify the network ID of this node
validator: boolSpecify this node as a validator
prover: boolSpecify this node as a prover
client: boolSpecify this node as a client
private_key: Option<String>Specify the account private key of the node
private_key_file: Option<PathBuf>Specify the path to a file containing the account private key of the node
node: Option<SocketAddr>Specify the IP address and port for the node server
bft: Option<SocketAddr>Specify the IP address and port for the BFT
peers: StringSpecify the IP address and port of the peer(s) to connect to
validators: StringSpecify the IP address and port of the validator(s) to connect to
allow_external_peers: boolIf the flag is set, a validator will allow untrusted peers to connect
rotate_external_peers: boolIf the flag is set, a client will periodically evict more external peers
rest: Option<SocketAddr>Specify the IP address and port for the REST server
rest_rps: u32Specify the requests per second (RPS) rate limit per IP for the REST server
norest: boolIf the flag is set, the node will not initialize the REST server
nodisplay: boolIf the flag is set, the node will not render the display
verbosity: u8Specify the verbosity of the node [options: 0, 1, 2, 3, 4]
logfile: PathBufSpecify the path to the file where logs will be stored
storage: Option<PathBuf>Specify the path to a directory containing the storage database for the ledger
cdn: Option<String>Enables the node to prefetch initial blocks from a CDN
nocdn: boolIf the flag is set, the node will not prefetch from a CDN
dev: Option<u16>Enables development mode, specify a unique ID for this node
dev_num_validators: Option<u16>If development mode is enabled, specify the number of genesis validators (default: 4)
no_dev_txs: boolIf development mode is enabled, specify whether node 0 should generate traffic to drive the network
dev_bonded_balances: Option<BondedBalances>If development mode is enabled, specify the custom bonded balances as a JSON object (default: None)
Implementations§
Trait Implementations§
Source§impl Args for Start
impl Args for Start
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Start
impl CommandFactory for Start
Source§impl FromArgMatches for Start
impl FromArgMatches for Start
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 Start
impl Parser for Start
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 Start
impl RefUnwindSafe for Start
impl Send for Start
impl Sync for Start
impl Unpin for Start
impl UnwindSafe for Start
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more