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

Method get_db

chapter 4/blockchain.rs:67–69  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

65 }
66
67 pub fn get_db(&self) -> &Db {
68 &self.db
69 }
70
71 pub fn get_tip_hash(&self) -> String {
72 self.tip_hash.read().unwrap().clone()

Callers 5

find_utxoMethod · 0.45
count_transactionsMethod · 0.45
reindexMethod · 0.45
updateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected