pub struct ChainOwnershipConfig {
pub super_owners: Option<Vec<AccountOwner>>,
pub owners: Option<Vec<AccountOwner>>,
pub owner_weights: Option<Vec<u64>>,
pub multi_leader_rounds: Option<Option<u32>>,
pub open_multi_leader_rounds: bool,
pub fast_round_duration: Option<Option<TimeDelta>>,
pub base_timeout: Option<TimeDelta>,
pub timeout_increment: Option<TimeDelta>,
pub fallback_duration: Option<TimeDelta>,
}Fields§
§super_owners: Option<Vec<AccountOwner>>A JSON list of the new super owners. Absence of the argument leaves the current set of super owners unchanged.
owners: Option<Vec<AccountOwner>>A JSON list of the new owners. Absence of the argument leaves the current list of owners unchanged.
owner_weights: Option<Vec<u64>>A JSON list of weights for the new owners.
If they are specified there must be exactly one weight for each owner.
Absence of the argument gives each owner a weight of 100 if –owners is specified, or leaves the owners unchanged if it is not specified.
Note: if –owner is not specified, but this argument is, the weights will be assigned to the existing owners in lexicographical order.
multi_leader_rounds: Option<Option<u32>>The number of rounds in which every owner can propose blocks, i.e. the first round number in which only a single designated leader is allowed to propose blocks. “null” is equivalent to 2^32 - 1. Absence of the argument leaves the current setting unchanged.
open_multi_leader_rounds: boolWhether the multi-leader rounds are unrestricted, i.e. not limited to chain owners.
This should only be true on chains with restrictive application permissions and an
application-based mechanism to select block proposers.
fast_round_duration: Option<Option<TimeDelta>>The duration of the fast round, in milliseconds. “null” means the fast round will not time out. Absence of the argument leaves the current setting unchanged.
base_timeout: Option<TimeDelta>The duration of the first single-leader and all multi-leader rounds. Absence of the argument leaves the current setting unchanged.
timeout_increment: Option<TimeDelta>The number of milliseconds by which the timeout increases after each single-leader round. Absence of the argument leaves the current setting unchanged.
fallback_duration: Option<TimeDelta>The age of an incoming tracked or protected message after which the validators start transitioning the chain to fallback mode, in milliseconds. Absence of the argument leaves the current setting unchanged.
Implementations§
Trait Implementations§
Source§impl Args for ChainOwnershipConfig
impl Args for ChainOwnershipConfig
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 Clone for ChainOwnershipConfig
impl Clone for ChainOwnershipConfig
Source§fn clone(&self) -> ChainOwnershipConfig
fn clone(&self) -> ChainOwnershipConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChainOwnershipConfig
impl Debug for ChainOwnershipConfig
Source§impl FromArgMatches for ChainOwnershipConfig
impl FromArgMatches for ChainOwnershipConfig
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 TryFrom<ChainOwnershipConfig> for ChainOwnership
impl TryFrom<ChainOwnershipConfig> for ChainOwnership
Auto Trait Implementations§
impl Freeze for ChainOwnershipConfig
impl RefUnwindSafe for ChainOwnershipConfig
impl Send for ChainOwnershipConfig
impl Sync for ChainOwnershipConfig
impl Unpin for ChainOwnershipConfig
impl UnwindSafe for ChainOwnershipConfig
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
Source§fn read<'instance>(
&self,
instance: &'instance &mut I,
location: GuestPointer,
length: u32,
) -> Result<Cow<'instance, [u8]>, RuntimeError>
fn read<'instance>( &self, instance: &'instance &mut I, location: GuestPointer, length: u32, ) -> Result<Cow<'instance, [u8]>, RuntimeError>
Reads length bytes from memory from the provided location.
Source§fn write(
&mut self,
instance: &mut &mut I,
location: GuestPointer,
bytes: &[u8],
) -> Result<(), RuntimeError>
fn write( &mut self, instance: &mut &mut I, location: GuestPointer, bytes: &[u8], ) -> Result<(), RuntimeError>
Writes the bytes to memory at the provided location.