more goerli fixes

This commit is contained in:
Bryan Stitt 2023-04-14 00:36:46 -07:00
parent 3621d71037
commit 8ed71e1cf1
2 changed files with 7 additions and 2 deletions

@ -95,6 +95,8 @@ impl Web3Rpcs {
let expected_block_time_ms = match chain_id {
// ethereum
1 => 12_000,
// ethereum-goerli
5 => 12_000,
// polygon
137 => 2_000,
// fantom
@ -103,7 +105,10 @@ impl Web3Rpcs {
42161 => 500,
// anything else
_ => {
warn!("unexpected chain_id. polling every {} seconds", 10);
warn!(
"unexpected chain_id ({}). polling every {} seconds",
chain_id, 10
);
10_000
}
};

@ -706,7 +706,7 @@ impl Web3Rpc {
// this does loop. just only when reconnect is enabled
#[allow(clippy::never_loop)]
loop {
debug!("subscription loop started");
trace!("subscription loop started on {}", self);
let mut futures = vec![];