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

Class BlockHeader

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

Source from the content-addressed store, hash-verified

7// 区块头
8#[derive(Serialize, Debug, PartialEq, Eq)]
9pub struct BlockHeader {
10 pub time: i64,
11 pub txs_hash: String,
12 pub pre_hash: String,
13}
14
15// 区块
16#[derive(Debug)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected