Remove debugging variable assignments
This commit is contained in:
parent
d12db25acb
commit
9b6a9d8e86
|
|
@ -63,8 +63,7 @@ impl ZcashSerialize for BlockHeaderHash {
|
||||||
|
|
||||||
impl ZcashDeserialize for BlockHeaderHash {
|
impl ZcashDeserialize for BlockHeaderHash {
|
||||||
fn zcash_deserialize<R: io::Read>(mut reader: R) -> Result<Self, SerializationError> {
|
fn zcash_deserialize<R: io::Read>(mut reader: R) -> Result<Self, SerializationError> {
|
||||||
let bytes = reader.read_32_bytes()?;
|
Ok(BlockHeaderHash(reader.read_32_bytes()?))
|
||||||
Ok(BlockHeaderHash(bytes))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -133,7 +132,7 @@ impl ZcashSerialize for BlockHeader {
|
||||||
|
|
||||||
impl ZcashDeserialize for BlockHeader {
|
impl ZcashDeserialize for BlockHeader {
|
||||||
fn zcash_deserialize<R: io::Read>(mut reader: R) -> Result<Self, SerializationError> {
|
fn zcash_deserialize<R: io::Read>(mut reader: R) -> Result<Self, SerializationError> {
|
||||||
let thing = BlockHeader {
|
Ok(BlockHeader {
|
||||||
previous_block_hash: BlockHeaderHash::zcash_deserialize(&mut reader)?,
|
previous_block_hash: BlockHeaderHash::zcash_deserialize(&mut reader)?,
|
||||||
merkle_root_hash: MerkleTreeRootHash(reader.read_32_bytes()?),
|
merkle_root_hash: MerkleTreeRootHash(reader.read_32_bytes()?),
|
||||||
final_sapling_root_hash: SaplingNoteTreeRootHash(reader.read_32_bytes()?),
|
final_sapling_root_hash: SaplingNoteTreeRootHash(reader.read_32_bytes()?),
|
||||||
|
|
@ -141,8 +140,7 @@ impl ZcashDeserialize for BlockHeader {
|
||||||
bits: reader.read_u32::<LittleEndian>()?,
|
bits: reader.read_u32::<LittleEndian>()?,
|
||||||
nonce: reader.read_32_bytes()?,
|
nonce: reader.read_32_bytes()?,
|
||||||
solution: EquihashSolution::zcash_deserialize(reader)?,
|
solution: EquihashSolution::zcash_deserialize(reader)?,
|
||||||
};
|
})
|
||||||
Ok(thing)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue