Skip to content

Commit

Permalink
local devnet: fix block 10
Browse files Browse the repository at this point in the history
  • Loading branch information
ftheirs committed Nov 4, 2024
1 parent 20b57b9 commit 3b5226a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bin/prove_block/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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? {
Expand Down

0 comments on commit 3b5226a

Please sign in to comment.