pub struct PhronCli {
unit_creation_delay: u64,
public_validator_addresses: Option<Vec<String>>,
validator_port: u16,
no_backup: bool,
backup_path: Option<PathBuf>,
max_nonfinalized_blocks: u32,
experimental_pruning: bool,
phron_bit_rate_per_connection: u64,
no_collection_of_extra_debugging_data: bool,
}
Fields§
§unit_creation_delay: u64
§public_validator_addresses: Option<Vec<String>>
The addresses at which the node will be externally reachable for validator network purposes. Have to be provided for validators.
validator_port: u16
The port on which to listen to validator network connections.
no_backup: bool
Turn off backups, at the cost of limiting crash recoverability.
If backups are turned off and the node crashes, it most likely will not be able to continue the session during which it crashed. It will join AlephBFT consensus in the next session.
backup_path: Option<PathBuf>
The path to save backups to.
Backups created by the node are saved under this path. When restarted after a crash,
the backups will be used to recover the node’s state, helping prevent auto-forks. The layout
of the directory is unspecified. This flag must be specified unless backups are turned off
with --no-backup
, but note that that limits crash recoverability.
max_nonfinalized_blocks: u32
The maximum number of nonfinalized blocks, after which block production should be locally stopped. DO NOT CHANGE THIS, PRODUCING MORE OR FEWER BLOCKS MIGHT BE CONSIDERED MALICIOUS BEHAVIOUR AND PUNISHED ACCORDINGLY!
experimental_pruning: bool
Experimental flag, allows pruning
TURNING THIS FLAG ON, CAN LEAD TO MALICIOUS BEHAVIOUR AND CAN BE PUNISHED ACCORDINGLY!
phron_bit_rate_per_connection: u64
Maximum bit-rate per node in bytes per second of the alephbft validator network.
no_collection_of_extra_debugging_data: bool
Don’t spend some extra time to collect more debugging data (e.g. validator network details). By default collecting is enabled, as the impact on performance is negligible, if any.
Implementations§
source§impl PhronCli
impl PhronCli
pub fn unit_creation_delay(&self) -> UnitCreationDelay
pub fn external_addresses(&self) -> Vec<String>
pub fn set_dummy_external_addresses(&mut self)
pub fn validator_port(&self) -> u16
pub fn _backup_path(&self) -> Option<PathBuf>
pub fn _no_backup(&self) -> bool
pub fn _max_nonfinalized_blocks(&self) -> u32
pub fn _experimental_pruning(&self) -> bool
pub fn phron_bit_rate_per_connection(&self) -> u64
pub fn no_collection_of_extra_debugging_data(&self) -> bool
Trait Implementations§
source§impl Args for PhronCli
impl Args for PhronCli
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§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
source§impl FromArgMatches for PhronCli
impl FromArgMatches for PhronCli
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 PhronCli
impl Parser for PhronCli
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl RefUnwindSafe for PhronCli
impl Send for PhronCli
impl Sync for PhronCli
impl Unpin for PhronCli
impl UnwindSafe for PhronCli
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
§fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
fn checked_from<T>(t: T) -> Option<Self>where
Self: TryFrom<T>,
§fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
fn checked_into<T>(self) -> Option<T>where
Self: TryInto<T>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more§impl<T> IsType<T> for T
impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for T
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
T
.