(&mut self, txs: &mut Vec<Transaction>)
| 18 | } |
| 19 | |
| 20 | pub fn mining(&mut self, txs: &mut Vec<Transaction>) { |
| 21 | let pre_hash = self.blockchain.curr_hash.clone(); |
| 22 | let bits = self.blockchain.curr_bits.clone(); |
| 23 | let block = self.miner.mine_block(txs, pre_hash, bits); |
| 24 | self.blockchain.add_block(block); |
| 25 | } |
| 26 | } |
no test coverage detected