From af6af0cc71d0f1e2acf5a9092bca1cf50f493190 Mon Sep 17 00:00:00 2001 From: taco-paco Date: Wed, 20 May 2026 16:50:09 +0700 Subject: [PATCH] fix: replay base slot has to be next slot after last persisted one --- magicblock-api/src/magic_validator.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/magicblock-api/src/magic_validator.rs b/magicblock-api/src/magic_validator.rs index 7b7240da3..a1ca5a3ed 100644 --- a/magicblock-api/src/magic_validator.rs +++ b/magicblock-api/src/magic_validator.rs @@ -601,10 +601,13 @@ impl MagicValidator { // we have this number for our max blockhash age in slots, which correspond to 60 seconds let max_block_age = SOLANA_VALID_BLOCKHASH_AGE / self.config.ledger.block_time_ms(); + // replay has to start 1 slot after accountsdb_slot + let full_process_starting_slot = accountsdb_slot + 1; + let step_start = Instant::now(); let process_ledger_result = process_ledger( &self.ledger, - accountsdb_slot, + full_process_starting_slot, self.transaction_scheduler.clone(), max_block_age, )