Struct ck_doge_types::block::Block
source · pub struct Block {
pub header: BlockHeader,
pub auxpow: Option<MerkleTx>,
pub txdata: Vec<Transaction>,
}Fields§
§header: BlockHeaderThe block header
auxpow: Option<MerkleTx>auxpow (if this is a merge-minded block)
txdata: Vec<Transaction>List of transactions contained in the block
Implementations§
source§impl Block
impl Block
pub fn block_hash(&self) -> BlockHash
sourcepub fn check_merkle_root(&self) -> bool
pub fn check_merkle_root(&self) -> bool
Checks if merkle root of header matches merkle root of the transaction list.
pub fn compute_merkle_root(&self) -> Option<TxMerkleNode>
Trait Implementations§
source§impl Decodable for Block
impl Decodable for Block
source§impl Ord for Block
impl Ord for Block
source§impl PartialEq for Block
impl PartialEq for Block
source§impl PartialOrd for Block
impl PartialOrd for Block
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin 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