MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / BlockHeader

Class BlockHeader

code/chapter09/blockchain/blockchain3/core/src/block.rs:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6#[derive(Serialize, Debug, PartialEq, Eq)]
7pub struct BlockHeader {
8 pub nonce: u32,
9 pub bits: u32,
10 pub time: i64,
11 pub txs_hash: String,
12 pub pre_hash: String,
13}
14
15#[derive(Serialize, Debug)]
16pub struct Block {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected