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

Method block_info

code/chapter09/blockchain/blockchain6/core/src/blockchain.rs:52–56  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

50 }
51
52 pub fn block_info(&self) {
53 for b in self.blocks.iter() {
54 println!("{:#?}", b);
55 }
56 }
57
58 fn write_block(db: &mut Database<BKey>, block: &Block) {
59 let header_ser = serialize(&(block.header));

Callers 1

mainFunction · 0.45

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected