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

Class BlockChain

code/chapter09/blockchain/blockchain1/core/src/blockchain.rs:6–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4const PRE_HASH: &str = "22caaf24ef0aea3522c13d133912d2b722caaf24ef0aea3522c13d133912d2b7";
5
6pub struct BlockChain {
7 pub blocks: Vec<Block>,
8}
9
10impl BlockChain {
11 pub fn new() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected