diff --git a/zebra-chain/src/merkle_tree.rs b/zebra-chain/src/merkle_tree.rs index 0e5e4f8a6..1ed9b2f54 100644 --- a/zebra-chain/src/merkle_tree.rs +++ b/zebra-chain/src/merkle_tree.rs @@ -3,6 +3,9 @@ use std::io; +#[cfg(test)] +use proptest_derive::Arbitrary; + use crate::serialization::{SerializationError, ZcashDeserialize, ZcashSerialize}; use crate::sha256d_writer::Sha256dWriter; use crate::transaction::Transaction; @@ -28,7 +31,8 @@ impl ZcashDeserialize for MerkleTree { /// A SHA-256d hash of the root node of a merkle tree of SHA256-d /// hashed transactions in a block. -#[derive(Clone, Debug, Eq, PartialEq)] +#[derive(Clone, Copy, Debug, Eq, PartialEq)] +#[cfg_attr(test, derive(Arbitrary))] pub struct MerkleTreeRootHash(pub [u8; 32]); impl From> for MerkleTreeRootHash {