MCPcopy Create free account
hub / github.com/PacktPublishing/Rust-for-Blockchain-Application-Development / Block

Class Block

chapter 3/block.rs:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10#[derive(Clone, Serialize, Deserialize)]
11pub struct Block {
12 timestamp: i64,
13 pre_block_hash: String,
14 hash: String,
15 transactions: Vec<Transaction>,
16 nonce: i64,
17 height: usize,
18}
19
20impl Block {
21

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected