pub fn create_block_index_with_nbits(nbits: u32) -> Arc<Mutex<BlockIndex>>