Struct sv::messages::BlockHeader [−][src]
pub struct BlockHeader {
pub version: u32,
pub prev_hash: Hash256,
pub merkle_root: Hash256,
pub timestamp: u32,
pub bits: u32,
pub nonce: u32,
}
Expand description
Block header
Fields
version: u32
Block version specifying which validation rules to use
prev_hash: Hash256
Hash of the previous block
merkle_root: Hash256
Root of the merkle tree of this block’s transaction hashes
timestamp: u32
Timestamp when this block was created as recorded by the miner
bits: u32
Target difficulty bits
nonce: u32
Nonce used to mine the block
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BlockHeader
impl Send for BlockHeader
impl Sync for BlockHeader
impl Unpin for BlockHeader
impl UnwindSafe for BlockHeader
Blanket Implementations
Mutably borrows from an owned value. Read more