blockstore: make merkle root Optional in MerkleRootMeta column (#34091)

This commit is contained in:
Ashwin Sekar 2023-11-15 13:09:18 -05:00 committed by GitHub
parent ffa462dd3a
commit 693d5768c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -140,8 +140,8 @@ pub(crate) struct ErasureConfig {
#[derive(Clone, Copy, Debug, Eq, PartialEq, Serialize, Deserialize)]
pub struct MerkleRootMeta {
/// The merkle root
merkle_root: Hash,
/// The merkle root, `None` for legacy shreds
merkle_root: Option<Hash>,
/// The first received shred index
first_received_shred_index: u32,
/// The shred type of the first received shred