only warn if rpc_configs is too short

This commit is contained in:
Bryan Stitt 2023-04-14 00:41:51 -07:00
parent df19619b77
commit c2710858e1

@ -211,11 +211,14 @@ impl Web3Rpcs {
) -> anyhow::Result<()> {
// safety checks
if rpc_configs.len() < app.config.min_synced_rpcs {
return Err(anyhow::anyhow!(
// TODO: don't count disabled servers!
// TODO: include if this is balanced, private, or 4337
warn!(
"Only {}/{} rpcs! Add more rpcs or reduce min_synced_rpcs.",
rpc_configs.len(),
app.config.min_synced_rpcs
));
);
return Ok(());
}
// safety check on sum soft limit