Struct monero::blockdata::block::BlockHeader [−][src]
pub struct BlockHeader {
pub major_version: VarInt,
pub minor_version: VarInt,
pub timestamp: VarInt,
pub prev_id: Hash,
pub nonce: u32,
}
Expand description
A block header containing the version, the mining timestamp, the previous block hash and the nonce.
Fields
major_version: VarInt
Major version, defines the consensus rules.
minor_version: VarInt
Minor version, also used to vote.
timestamp: VarInt
Block mining timestamp.
prev_id: Hash
Previous block hash.
nonce: u32
The nonce used for the proof of work.
Trait Implementations
Decode an object with a well-defined format.
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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