Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into notlesh/upstream-retd…
Browse files Browse the repository at this point in the history
…ata-preview
  • Loading branch information
ftheirs committed Dec 27, 2024
2 parents 67d9c6b + 02f6560 commit a31f575
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 a31f575

Please sign in to comment.