(tip_hash: String, db: Db)
| 240 | |
| 241 | impl BlockchainIterator { |
| 242 | fn new(tip_hash: String, db: Db) -> BlockchainIterator { |
| 243 | BlockchainIterator { |
| 244 | current_hash: tip_hash, |
| 245 | db, |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | pub fn next(&mut self) -> Option<Block> { |
| 250 | let block_tree = self.db.open_tree(BLOCKS_TREE).unwrap(); |
nothing calls this directly
no outgoing calls
no test coverage detected