pub struct Prevote { /* fields omitted */ }
Pre-vote for a new block.
A node panics if it has already sent a different Prevote
for the same
round.
Pre-vote is added to the list of known votes for the same proposal. If
locked_round
number from the message is bigger than in a node state,
then a node replies with PrevotesRequest
. If there are unknown
transactions in the propose specified by propose_hash
,
TransactionsRequest
is sent in reply. Otherwise if all transactions
are known and there are +2/3 pre-votes, then a node is locked to that
proposal and Precommit
is broadcast.
A node broadcasts Prevote
in response to Propose
when it has
received all the transactions.
Creates message and signs it.
Creates message and appends existing signature.
Returns the hex representation of the binary data.
Lower case letters are used (e.g. f9b4ca).
The height to which the message is related.
The round to which the message is related.
Hash of the corresponding Propose
.
write deserialized field in buffer on place.
serialize field as json::Value
size of item fixed part that this Field
collect.
count of items in collection
extend buffer with this collection
create collection from buffer
ID of the service this message belongs to.
ID of the message itself. Should be unique within a service. Read more
Converts the raw message into the specific one.
Verifies the message using given public key.
Return validator if of the message.
Serialize a value into a vector of bytes.
Deserialize a value from bytes.
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
Creates an instance of type Self
from the given hex string, or fails with a custom error type. 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