pub struct Block {
pub height: Height,
pub parent_hash: BlockHash,
pub view: ViewNumber,
pub proposer: ValidatorId,
pub timestamp: u64,
pub payload: Vec<u8>,
pub app_hash: BlockHash,
pub evidence: Vec<EquivocationProof>,
pub hash: BlockHash,
}Expand description
Block B_k := (b_k, h_{k-1})
Fields§
§height: Height§parent_hash: BlockHash§view: ViewNumber§proposer: ValidatorId§timestamp: u64Unix timestamp in milliseconds, set by the proposer.
Validators verify that timestamp >= parent.timestamp and that
it is within a reasonable drift window of the local clock.
payload: Vec<u8>§app_hash: BlockHashApplication state root after executing the parent block.
evidence: Vec<EquivocationProof>Equivocation evidence collected by the proposer (C-3).
hash: BlockHashImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more