Struct finality_grandpa::Commit
source · pub struct Commit<H, N, S, Id> {
pub target_hash: H,
pub target_number: N,
pub precommits: Vec<SignedPrecommit<H, N, S, Id>>,
}
Expand description
A commit message which is an aggregate of precommits.
Fields§
§target_hash: H
The target block’s hash.
target_number: N
The target block’s number.
precommits: Vec<SignedPrecommit<H, N, S, Id>>
Precommits for target block or any block after it that justify this commit.
Trait Implementations§
source§impl<H: Clone, N: Clone, S, Id> From<Commit<H, N, S, Id>> for CompactCommit<H, N, S, Id>
impl<H: Clone, N: Clone, S, Id> From<Commit<H, N, S, Id>> for CompactCommit<H, N, S, Id>
source§fn from(commit: Commit<H, N, S, Id>) -> CompactCommit<H, N, S, Id>
fn from(commit: Commit<H, N, S, Id>) -> CompactCommit<H, N, S, Id>
Converts to this type from the input type.
source§impl<H, N, S, Id> From<CompactCommit<H, N, S, Id>> for Commit<H, N, S, Id>
impl<H, N, S, Id> From<CompactCommit<H, N, S, Id>> for Commit<H, N, S, Id>
source§fn from(commit: CompactCommit<H, N, S, Id>) -> Commit<H, N, S, Id>
fn from(commit: CompactCommit<H, N, S, Id>) -> Commit<H, N, S, Id>
Converts to this type from the input type.