| 14 | |
| 15 | #[derive(Serialize, Debug, Clone)] |
| 16 | pub struct Block { |
| 17 | pub header: BlockHeader, |
| 18 | pub tranxs: Vec<Transaction>, |
| 19 | pub hash: String, |
| 20 | } |
| 21 | |
| 22 | impl Block { |
| 23 | pub fn new(txs: Vec<Transaction>, pre_hash: String, bits: u32) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected