foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.33k stars 1.76k forks source link

perf: cap default poll interval #9250

Closed mattsse closed 2 weeks ago

mattsse commented 2 weeks ago

when we create the provider for cast, we don't necessarily know the chain (no foundry.toml) in which case we'd default to mainnet settings.

so for cast send this would always set a poll interval of ~7s which is not useful.

this now caps to 3s * 0.6 which should improve UX for all chains ~3s blocktime