Struct chik_protocol::FullBlock
source · pub struct FullBlock {
pub finished_sub_slots: Vec<EndOfSubSlotBundle>,
pub reward_chain_block: RewardChainBlock,
pub challenge_chain_sp_proof: Option<VDFProof>,
pub challenge_chain_ip_proof: VDFProof,
pub reward_chain_sp_proof: Option<VDFProof>,
pub reward_chain_ip_proof: VDFProof,
pub infused_challenge_chain_ip_proof: Option<VDFProof>,
pub foliage: Foliage,
pub foliage_transaction_block: Option<FoliageTransactionBlock>,
pub transactions_info: Option<TransactionsInfo>,
pub transactions_generator: Option<Program>,
pub transactions_generator_ref_list: Vec<u32>,
}Fields§
§finished_sub_slots: Vec<EndOfSubSlotBundle>§reward_chain_block: RewardChainBlock§challenge_chain_sp_proof: Option<VDFProof>§challenge_chain_ip_proof: VDFProof§reward_chain_sp_proof: Option<VDFProof>§reward_chain_ip_proof: VDFProof§infused_challenge_chain_ip_proof: Option<VDFProof>§foliage: Foliage§foliage_transaction_block: Option<FoliageTransactionBlock>§transactions_info: Option<TransactionsInfo>§transactions_generator: Option<Program>§transactions_generator_ref_list: Vec<u32>Implementations§
source§impl FullBlock
impl FullBlock
pub fn new( finished_sub_slots: Vec<EndOfSubSlotBundle>, reward_chain_block: RewardChainBlock, challenge_chain_sp_proof: Option<VDFProof>, challenge_chain_ip_proof: VDFProof, reward_chain_sp_proof: Option<VDFProof>, reward_chain_ip_proof: VDFProof, infused_challenge_chain_ip_proof: Option<VDFProof>, foliage: Foliage, foliage_transaction_block: Option<FoliageTransactionBlock>, transactions_info: Option<TransactionsInfo>, transactions_generator: Option<Program>, transactions_generator_ref_list: Vec<u32>, ) -> FullBlock
source§impl FullBlock
impl FullBlock
pub fn prev_header_hash(&self) -> Bytes32
pub fn header_hash(&self) -> Bytes32
pub fn is_transaction_block(&self) -> bool
pub fn total_iters(&self) -> u128
pub fn height(&self) -> u32
pub fn weight(&self) -> u128
pub fn get_included_reward_coins(&self) -> Vec<Coin>
pub fn is_fully_compactified(&self) -> bool
Trait Implementations§
source§impl PartialEq for FullBlock
impl PartialEq for FullBlock
source§impl Streamable for FullBlock
impl Streamable for FullBlock
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 FullBlock
impl StructuralPartialEq for FullBlock
Auto Trait Implementations§
impl Freeze for FullBlock
impl RefUnwindSafe for FullBlock
impl Send for FullBlock
impl Sync for FullBlock
impl Unpin for FullBlock
impl UnwindSafe for FullBlock
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)