Struct chik_protocol::UnfinishedHeaderBlock
source · pub struct UnfinishedHeaderBlock {
pub finished_sub_slots: Vec<EndOfSubSlotBundle>,
pub reward_chain_block: RewardChainBlockUnfinished,
pub challenge_chain_sp_proof: Option<VDFProof>,
pub reward_chain_sp_proof: Option<VDFProof>,
pub foliage: Foliage,
pub foliage_transaction_block: Option<FoliageTransactionBlock>,
pub transactions_filter: Bytes,
}Fields§
§finished_sub_slots: Vec<EndOfSubSlotBundle>Same as a FullBlock but without TransactionInfo and Generator, used by light clients. If first sb.
reward_chain_block: RewardChainBlockUnfinishedReward chain trunk data.
challenge_chain_sp_proof: Option<VDFProof>If not first sp in sub-slot.
reward_chain_sp_proof: Option<VDFProof>If not first sp in sub-slot.
foliage: FoliageReward chain foliage data.
foliage_transaction_block: Option<FoliageTransactionBlock>Reward chain foliage data (tx block).
transactions_filter: BytesFilter for block transactions.
Implementations§
source§impl UnfinishedHeaderBlock
impl UnfinishedHeaderBlock
pub fn new( finished_sub_slots: Vec<EndOfSubSlotBundle>, reward_chain_block: RewardChainBlockUnfinished, challenge_chain_sp_proof: Option<VDFProof>, reward_chain_sp_proof: Option<VDFProof>, foliage: Foliage, foliage_transaction_block: Option<FoliageTransactionBlock>, transactions_filter: Bytes, ) -> UnfinishedHeaderBlock
source§impl UnfinishedHeaderBlock
impl UnfinishedHeaderBlock
pub fn prev_header_hash(&self) -> Bytes32
pub fn header_hash(&self) -> Bytes32
pub fn total_iters(&self) -> u128
Trait Implementations§
source§impl Clone for UnfinishedHeaderBlock
impl Clone for UnfinishedHeaderBlock
source§fn clone(&self) -> UnfinishedHeaderBlock
fn clone(&self) -> UnfinishedHeaderBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UnfinishedHeaderBlock
impl Debug for UnfinishedHeaderBlock
source§impl Hash for UnfinishedHeaderBlock
impl Hash for UnfinishedHeaderBlock
source§impl PartialEq for UnfinishedHeaderBlock
impl PartialEq for UnfinishedHeaderBlock
source§fn eq(&self, other: &UnfinishedHeaderBlock) -> bool
fn eq(&self, other: &UnfinishedHeaderBlock) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Streamable for UnfinishedHeaderBlock
impl Streamable for UnfinishedHeaderBlock
fn update_digest(&self, digest: &mut Sha256)
fn stream(&self, out: &mut Vec<u8>) -> Result<()>
fn parse<const TRUSTED: bool>(input: &mut Cursor<&[u8]>) -> Result<Self>
fn to_bytes(&self) -> Result<Vec<u8>, Error>
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn from_bytes_unchecked(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn hash(&self) -> [u8; 32]
impl Eq for UnfinishedHeaderBlock
impl StructuralPartialEq for UnfinishedHeaderBlock
Auto Trait Implementations§
impl Freeze for UnfinishedHeaderBlock
impl RefUnwindSafe for UnfinishedHeaderBlock
impl Send for UnfinishedHeaderBlock
impl Sync for UnfinishedHeaderBlock
impl Unpin for UnfinishedHeaderBlock
impl UnwindSafe for UnfinishedHeaderBlock
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)