Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions crates/bitcell-consensus/src/block.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Block structures

use bitcell_crypto::{Hash256, PublicKey, Signature};
use crate::finality::{FinalityVote, FinalityStatus};
use serde::{Deserialize, Serialize};

/// Block header
Expand Down Expand Up @@ -58,6 +59,13 @@ pub struct Block {

/// Proposer signature
pub signature: Signature,

/// Finality votes collected for this block
pub finality_votes: Vec<FinalityVote>,

/// Finality status of this block
#[serde(default)]
pub finality_status: FinalityStatus,
}

impl Block {
Expand Down
Loading