Consensus algorithm parameters.
This configuration is initially created with default recommended values,
which can later be edited as required.
The parameters in this configuration should be the same for all nodes in the network and can
be changed using the
configuration updater service.
Default propose timeout value, along with the threshold, is chosen for maximal performance. In order
to slow down block generation,hence consume less disk space, these values can be increased.
For additional information on the Exonum consensus algorithm, refer to
Consensus in Exonum.
Interval between rounds. This interval defines the time that passes
between the moment a new block is committed to the blockchain and the
time when a new round starts, regardless of whether a new block has
been committed during this period or not.
Note that rounds in Exonum
do not have a defined end time. Nodes in a new round can
continue to vote for proposals and process messages related to previous
rounds.
Period of sending a Status message. This parameter defines the frequency
with which a node broadcasts its status message to the network.
Peer exchange timeout. This parameter defines the frequency with which
a node requests collected Connect
messages from a random peer
node in the network.
Maximum number of transactions per block.
Maximum message length (in bytes). This parameter determines the maximum
size of both consensus messages and transactions. The default value of the
parameter is 1 MB (1024 * 1024 bytes). The range of possible values for this
parameter is between 1MB and 2^32-1 bytes.
Amount of transactions in pool to start use min_propose_timeout
.
Default value is equal to half of the txs_block_limit
in order to gather more transactions
in a block if the transaction pool is almost empty, and create blocks faster when there are
enough transactions in the pool.
Default value for max_message_len.
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more
Serializes content of a transaction with the given serializer.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> Clear for T where T: InitializableFromZeroed + ?Sized, | |
Completely overwrites this value.
impl<T> InitializableFromZeroed for T where T: Default, | |
Called to initialize a place to a valid value, after it is set to all-bits-zero. Read more