confirmations: 0, difficulty: 0.0, hash: block_hash, height, median_time: None, merkle_root: TxMerkleNode::all_zeros(), n_tx: 0, next_block_hash: None, nonce: 0, previous_block_hash: None, time: 0, version: Version::ONE, version_hex: Some(vec![0, 0, 0, 0]), }) .unwrap(), ) } else { match self.state().blocks.get(&block_hash) { Some(block) => Ok(serde_json::to_value(hex::encode(serialize(&block.header))).unwrap()), None => Err(Self::not_found()), } } } fn get_block( &self, block_hash: BlockHash, verbosity: u64, ) -> Result { assert_eq!(verbosity, 0, "Verbosity level {verbosity} is unsupported"); match self.state().blocks.get(&block_hash) { Some(block) => Ok(hex::encode(serialize(block))), None => Err(Self::not_found()), } } fn get_block_count(&self) -> Result {