diff --git a/zebra-chain/src/block.rs b/zebra-chain/src/block.rs index 1a7e440b..cf474e45 100644 --- a/zebra-chain/src/block.rs +++ b/zebra-chain/src/block.rs @@ -107,8 +107,11 @@ pub struct BlockHeader { nonce: [u8; 32], /// The Equihash solution. - // The solution size when serialized should be in bytes ('always 1344'). - solution: [u8; 1344], + // The solution size when serialized should be in bytes ('always + // 1344'). I first tried this as a [u8; 1344] but until const + // generics land we'd have to implement all our common traits + // manually, like in pzec. + solution: Vec, } impl BlockHeader { diff --git a/zebra-chain/src/note_commitment_tree.rs b/zebra-chain/src/note_commitment_tree.rs index d851ba7e..b7ad1be2 100644 --- a/zebra-chain/src/note_commitment_tree.rs +++ b/zebra-chain/src/note_commitment_tree.rs @@ -13,7 +13,6 @@ use std::io; use crate::serialization::{SerializationError, ZcashDeserialize, ZcashSerialize}; -use crate::sha256d_writer::Sha256dWriter; // XXX: Depending on if we implement SproutNoteCommitmentTree or // similar, it may be worth it to define a NoteCommitmentTree trait. diff --git a/zebra-network/src/protocol/message.rs b/zebra-network/src/protocol/message.rs index 1725f12d..8ccb3af6 100644 --- a/zebra-network/src/protocol/message.rs +++ b/zebra-network/src/protocol/message.rs @@ -164,7 +164,7 @@ pub enum Message { nonce: [u8; 32], /// The Equihash solution. - solution: [u8; 1344], + solution: Vec, /// Transactions. txns: Vec,