Struct linera_chain::ChainManagerInfo
source · pub struct ChainManagerInfo {
pub ownership: ChainOwnership,
pub requested_proposed: Option<Box<BlockProposal>>,
pub requested_locked: Option<Box<Certificate>>,
pub leader_timeout: Option<Box<Certificate>>,
pub pending: Option<LiteVote>,
pub timeout_vote: Option<LiteVote>,
pub requested_pending_value: Option<Box<HashedValue>>,
pub current_round: Round,
pub leader: Option<Owner>,
pub round_timeout: Option<Timestamp>,
}
Expand description
Chain manager information that is included in ChainInfo
sent to clients.
Fields§
§ownership: ChainOwnership
The configuration of the chain’s owners.
requested_proposed: Option<Box<BlockProposal>>
Latest authenticated block that we have received, if requested.
requested_locked: Option<Box<Certificate>>
Latest validated proposal that we have voted to confirm (or would have, if we are not a validator).
leader_timeout: Option<Box<Certificate>>
Latest timeout certificate we have seen.
pending: Option<LiteVote>
Latest vote we cast (either to validate or to confirm a block).
timeout_vote: Option<LiteVote>
Latest timeout vote we cast.
requested_pending_value: Option<Box<HashedValue>>
The value we voted for, if requested.
current_round: Round
The current round, i.e. the lowest round where we can still vote to validate a block.
leader: Option<Owner>
The current leader, who is allowed to propose the next block.
None
if everyone is allowed to propose.
round_timeout: Option<Timestamp>
The timestamp when the current round times out.
Implementations§
source§impl ChainManagerInfo
impl ChainManagerInfo
sourcepub fn add_values(&mut self, manager: &ChainManager)
pub fn add_values(&mut self, manager: &ChainManager)
Adds requested certificate values and proposals to the ChainManagerInfo
.
sourcepub fn highest_validated(&self) -> Option<&Certificate>
pub fn highest_validated(&self) -> Option<&Certificate>
Returns the highest known validated block certificate.
Trait Implementations§
source§impl Clone for ChainManagerInfo
impl Clone for ChainManagerInfo
source§fn clone(&self) -> ChainManagerInfo
fn clone(&self) -> ChainManagerInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more