From a7b4ee5512ee83fc9500ff3ef837631d357cd00b Mon Sep 17 00:00:00 2001 From: Ashwin Sekar Date: Wed, 15 Nov 2023 13:09:18 -0500 Subject: [PATCH] blockstore: make merkle root Optional in MerkleRootMeta column (#34091) --- ledger/src/blockstore_meta.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ledger/src/blockstore_meta.rs b/ledger/src/blockstore_meta.rs index 625150847aa429..49a51bd21d42ae 100644 --- a/ledger/src/blockstore_meta.rs +++ b/ledger/src/blockstore_meta.rs @@ -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, /// The first received shred index first_received_shred_index: u32, /// The shred type of the first received shred