From 02f656012a7917446405d78297d6ca9ac3351739 Mon Sep 17 00:00:00 2001 From: ftheirs Date: Fri, 27 Dec 2024 14:48:57 -0300 Subject: [PATCH] local devnet: fix block 10 (#420) Co-authored-by: Herman Obst Demaestri <70286869+HermanObst@users.noreply.github.com> --- crates/bin/prove_block/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bin/prove_block/src/lib.rs b/crates/bin/prove_block/src/lib.rs index f179fbbc..417ef8a3 100644 --- a/crates/bin/prove_block/src/lib.rs +++ b/crates/bin/prove_block/src/lib.rs @@ -149,7 +149,7 @@ pub async fn prove_block( // This is a workaorund to catch the case where the block number is less than the buffer and still preserve the check // The OS will also handle the case where the block number is less than the buffer. let older_block_number = - if block_number <= STORED_BLOCK_HASH_BUFFER { 1 } else { block_number - STORED_BLOCK_HASH_BUFFER }; + if block_number <= STORED_BLOCK_HASH_BUFFER { 0 } else { block_number - STORED_BLOCK_HASH_BUFFER }; let older_block = match rpc_client.starknet_rpc().get_block_with_tx_hashes(BlockId::Number(older_block_number)).await? {