pub struct Block {
pub header: BlockHeader,
pub coinbase_txn: Transaction,
pub block_hash: Hash,
pub coinbase_branch_hashes: Vec<Hash>,
pub coinbase_branch_side_mask: u32,
pub blockchain_branch_hashes: Vec<Hash>,
pub blockchain_branch_side_mask: u32,
pub parent_block: BlockHeader,
pub txdata: Vec<Transaction>,
}Expand description
A Bitcoin block, which is a collection of transactions with an attached proof of work.
Fields§
§header: BlockHeaderThe block header
coinbase_txn: TransactionCoinbase transaction that is in the parent block, linking the AuxPOW block to its parent block
block_hash: HashHash of the parent_block header
coinbase_branch_hashes: Vec<Hash>The merkle branch linking the coinbase_txn to the parent block’s merkle_root
coinbase_branch_side_mask: u32Bitmask of which side of the merkle hash function the branch_hash element should go on. Zero means it goes on the right, One means on the left. It is equal to the index of the starting hash within the widest level of the merkle tree for this merkle branch.
blockchain_branch_hashes: Vec<Hash>The merkle branch linking this auxiliary blockchain to the others, when used in a merged mining setup with multiple auxiliary chains
blockchain_branch_side_mask: u32Bitmask of which side of the merkle hash function the branch_hash element should go on. Zero means it goes on the right, One means on the left. It is equal to the index of the starting hash within the widest level of the merkle tree for this merkle branch.
parent_block: BlockHeaderParent block header
txdata: Vec<Transaction>List of transactions contained in the block