Enum tendermint::block::commit_sig::CommitSig
source[−]pub enum CommitSig {
BlockIdFlagAbsent,
BlockIdFlagCommit {
validator_address: Id,
timestamp: Time,
signature: Option<Signature>,
},
BlockIdFlagNil {
validator_address: Id,
timestamp: Time,
signature: Option<Signature>,
},
}
Expand description
CommitSig represents a signature of a validator. It’s a part of the Commit and can be used to reconstruct the vote set given the validator set.
Variants
BlockIdFlagAbsent
no vote was received from a validator.
BlockIdFlagCommit
voted for the Commit.BlockID.
BlockIdFlagNil
voted for nil.
Implementations
Get the address of this validator if a vote was received.
Whether this signature is absent (no vote was received from validator)
Whether this signature is a commit (validator voted for the Commit.BlockId)
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CommitSig
impl UnwindSafe for CommitSig
Blanket Implementations
Mutably borrows from an owned value. Read more