From 866958c2291e905e0b6f912736bdf5e58587f9c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20D=C3=ADaz?= Date: Tue, 5 Mar 2024 18:12:13 +0100 Subject: [PATCH] fix: wip... --- bridges/centralized-ethereum/src/actors/eth_poller.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bridges/centralized-ethereum/src/actors/eth_poller.rs b/bridges/centralized-ethereum/src/actors/eth_poller.rs index f33d33927..17c5824e4 100644 --- a/bridges/centralized-ethereum/src/actors/eth_poller.rs +++ b/bridges/centralized-ethereum/src/actors/eth_poller.rs @@ -114,7 +114,7 @@ impl EthPoller { last_dr_id = skip_first; } if last_dr_id < next_dr_id { - if last_dr_id + max_batch_size > next_dr_id { + if next_dr_id > last_dr_id + max_batch_size next_dr_id = last_dr_id + max_batch_size; } let init_index = usize::try_from(last_dr_id + 1).unwrap(); @@ -122,6 +122,8 @@ impl EthPoller { let ids = init_index..last_index; let ids: Vec = ids.map(|id| Token::Uint(id.into())).collect(); + log::debug!("getQueryStatusBatch params => {}", Token::Tuple(ids.clone())) + let queries_status: Result, web3::contract::Error> = wrb_contract .query( "getQueryStatusBatch",