diff --git a/src/main.rs b/src/main.rs index 12e196f..8af3178 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,9 @@ use ethers::{ core::{ abi::AbiDecode, - types::{Address, BlockNumber, Filter as LogFilter, Log, TransactionReceipt, H256, U256}, + types::{ + Address, BlockNumber, Filter as LogFilter, Log, TransactionReceipt, H256, U256, U64, + }, }, middleware::Middleware, providers::{Http, Provider, ProviderError}, @@ -388,6 +390,7 @@ async fn debug_chain_events( } async fn monitor_chain_events(chain: Chain, addressbook: Arc>>) { + let MAX_BLOCK_RANGE: U64 = U64::from(1500_u64); let provider = connect_and_verify(chain.clone()).await; info!("Starting Account Watcher for {} Event Mode", chain.name); @@ -395,6 +398,7 @@ async fn monitor_chain_events(chain: Chain, addressbook: Arc res, @@ -406,6 +410,7 @@ async fn monitor_chain_events(chain: Chain, addressbook: Arc