Skip to content

Commit 315f965

Browse files
improve the name of the first block included on the polling cycle
1 parent a74e247 commit 315f965

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

aggregation_mode/payments_poller/src/payments.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ impl PaymentsPoller {
6161
continue;
6262
};
6363

64-
let from = last_block_fetched.saturating_sub(5);
65-
tracing::info!("Fetching logs from block {from} to {current_block}");
64+
let start_block = last_block_fetched.saturating_sub(5);
65+
tracing::info!("Fetching logs from block {start_block} to {current_block}");
6666

6767
let Ok(logs) = self
6868
.proof_aggregation_service
6969
.UserPayment_filter()
70-
.from_block(last_block_fetched - 5)
70+
.from_block(start_block)
7171
.to_block(current_block)
7272
.query()
7373
.await

0 commit comments

Comments
 (0)