-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve(SpokePoolClient): Multicall latestBlock updates (#750)
The SpokePoolClient is currently throwing semi-regular errors on update. This seems to be particularly occurring against Polygon. The underlying reason for this is that the RPC quroum system is performing an eth_call against multiple providers, tagged at the latest block number as resolved by only one of them. Some providers may not have resolved that block number yet, in which case the query fails. The instance of this can presumably be reduced by bundling the two calls where this occurs into a single SpokePool multicall. As a side-benefit, it will reduce RPC consumption.
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters