From 7721f16f9f0f1c1f609f030cce5ffdceb5dba3e3 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Sat, 6 Apr 2024 03:44:58 +0000 Subject: [PATCH] Don't apply age tint to accelerated txs --- frontend/src/app/components/block-overview-graph/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/app/components/block-overview-graph/utils.ts b/frontend/src/app/components/block-overview-graph/utils.ts index 568cd5ad6..d15e87534 100644 --- a/frontend/src/app/components/block-overview-graph/utils.ts +++ b/frontend/src/app/components/block-overview-graph/utils.ts @@ -133,6 +133,10 @@ export function ageColorFunction( auditColors: { [status: string]: Color } = defaultAuditColors, relativeTime?: number, ): Color { + if (tx.acc || tx.status === 'accelerated') { + return auditColors.accelerated; + } + const color = defaultColorFunction(tx, colors, auditColors, relativeTime); const ageLevel = (!tx.time ? 0 : (0.8 * Math.tanh((1 / 15) * Math.log2((Math.max(1, 0.6 * ((relativeTime - tx.time) - 60)))))));