[][src]Struct bitcoin::blockdata::block::BaseHeader

pub struct BaseHeader {
    pub version: u32,
    pub prev_blockhash: Hash,
    pub merkle_root: Hash,
    pub time: u32,
    pub bits: u32,
    pub nonce: u32,
}

A legacy header without auxpow

Fields

version: u32

The protocol version. Should always be 1.

prev_blockhash: Hash

Reference to the previous block in the chain

merkle_root: Hash

The root hash of the merkle tree of transactions in the block

time: u32

The timestamp of the block, as claimed by the miner

bits: u32

The target value below which the blockhash must lie, encoded as a a float (with well-defined rounding, of course)

nonce: u32

The nonce, selected to obtain a low enough blockhash

Trait Implementations

impl<S: Encoder> Encodable<S> for BaseHeader[src]

impl<D: Decoder> Decodable<D> for BaseHeader[src]

impl BitcoinHash for BaseHeader[src]

impl Eq for BaseHeader[src]

impl Clone for BaseHeader[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<BaseHeader> for BaseHeader[src]

impl<'_> From<&'_ BlockHeader> for BaseHeader[src]

impl Debug for BaseHeader[src]

Auto Trait Implementations

impl Send for BaseHeader

impl Sync for BaseHeader

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]