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

Method new

chapter 5/utxoSet.rs:15–17  ·  view source on GitHub ↗
(blockchain: Blockchain)

Source from the content-addressed store, hash-verified

13impl UTXOSet {
14
15 pub fn new(blockchain: Blockchain) -> UTXOSet {
16 UTXOSet { blockchain }
17 }
18
19 pub fn get_blockchain(&self) -> &Blockchain {
20 &self.blockchain

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected