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

Class Block

chapter 3/structs.rs:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3// --------------------------------------------------------------------------------------------------
4
5pub struct Block {
6 timestamp: i64,
7 pre_block_hash: String,
8 hash: String,
9 transactions: Vec<Transaction>,
10 nonce: i64,
11 height: usize,
12}
13
14pub struct Transaction {
15 id: Vec<u8>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected