-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, if we encountered an RPC error in `get_finalized_block`, we would retry indefinitely without resetting the WebSockets connection. This makes it likely that the failure will persist indefinitely. This change improves resiliency in two ways: * If anything goes wrong in `get_finalized_block`, we return an error and the update loop resets the WebSockets connection * Before resetting the connection, the update loop will update the L1 head anyways, so that failure to fetch the finalized block does not impede our ability to update the latest block
- Loading branch information
Showing
1 changed file
with
48 additions
and
38 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