Skip to content

Commit

Permalink
Update arbStack.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Dec 2, 2024
1 parent 15498b4 commit c47c4e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/finalizer/utils/arbStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export async function arbStackFinalizer(
undefined,
redis
);
const l2BlockTime = (await averageBlockTime(spokePoolClient.spokePool.provider)).average;
logger.debug({
at: `Finalizer#${networkName}Finalizer`,
message: `${networkName} TokensBridged event filter`,
Expand Down Expand Up @@ -209,6 +210,9 @@ export async function arbStackFinalizer(
logger.debug({
at: `Finalizer#${networkName}Finalizer`,
message: `Withdrawal event for ${amountFromWei} of ${l1TokenInfo.symbol} is too recent to finalize`,
l2BlockTimeSeconds: l2BlockTime,
maturedHours: `${((spokePoolClient.latestBlockSearched - event.blockNumber) * l2BlockTime) / 60 / 60}`,
challengePeriodHours: `${getArbitrumOrbitFinalizationTime(chainId) / 60 / 60}`,
});
}
} catch (err) {
Expand Down

0 comments on commit c47c4e8

Please sign in to comment.