(mut db: &mut Database<BKey>, block: &Block)
| 85 | } |
| 86 | |
| 87 | fn write_tail(mut db: &mut Database<BKey>, block: &Block) { |
| 88 | let key = BKey{ val: U256::from("tail".as_bytes()) }; |
| 89 | let val = serialize(&(block.hash)); |
| 90 | BlockChainDb::write_db(&mut db, key, &val); |
| 91 | } |
| 92 | |
| 93 | pub fn block_info(&self) { |
| 94 | let mut hash = self.curr_hash.clone(); |
nothing calls this directly
no test coverage detected