| 14 | const PRE_HASH: &str = "22caaf24ef0aea3522c13d133912d2b722caaf24ef0aea3522c13d133912d2b7"; |
| 15 | |
| 16 | pub struct BlockChain { |
| 17 | blocks_db: Box<Database<BKey>>, |
| 18 | blocks_index: Mutex<HashMap<String, Block>>, |
| 19 | pub gnes_hash: String, |
| 20 | pub curr_hash: String, |
| 21 | pub curr_bits: u32, |
| 22 | } |
| 23 | |
| 24 | impl BlockChain { |
| 25 | pub fn new() -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected