From 7d2741010e490811411f6739e7884534e4171f5a Mon Sep 17 00:00:00 2001 From: Ashwin Sekar Date: Thu, 7 May 2026 21:08:27 +0000 Subject: [PATCH] blockstore_processor: set block id for bank 0 --- ledger/src/blockstore_processor.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index 507ae50fc58..365171d5bfe 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -2135,6 +2135,11 @@ fn process_bank_0( err @ BlockstoreProcessorError::InvalidTransaction(_) => panic!("{err}"), _ => BlockstoreProcessorError::FailedToReplayBank0, })?; + bank0.set_block_id(Some( + blockstore + .get_block_id(bank0.slot(), migration_status)? + .expect("block id for a full slot must exist"), + )); bank0.freeze(); if blockstore.is_primary_access() { blockstore.insert_bank_hash(bank0.slot(), bank0.hash(), false);