Skip to content

Commit

Permalink
fix: Increase Polygon lookback (#1150)
Browse files Browse the repository at this point in the history
The Polygon finalizer instance limits its lookback to head - lookback,
which is currently set to 1 day. If the finalizer is down or ineffective
for > 1 day then this risks ignoring transactions that would otherwise
be able to be finalised. There's very limited benefit to limiting the
lookback to only 1 day, so pad it out to 5.
  • Loading branch information
pxrl authored Feb 2, 2024
1 parent 9fcfc38 commit b320a51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/finalizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export async function finalize(
spokePoolClients: SpokePoolClientsByChain,
configuredChainIds: number[],
submitFinalizationTransactions: boolean,
optimisticRollupFinalizationWindow: number = 5 * oneDaySeconds,
polygonFinalizationWindow: number = oneDaySeconds
optimisticRollupFinalizationWindow = 5 * oneDaySeconds,
polygonFinalizationWindow = 5 * oneDaySeconds
): Promise<void> {
const finalizationWindows: { [chainId: number]: number } = {
// Mainnets
Expand Down

0 comments on commit b320a51

Please sign in to comment.