mirror of
https://github.com/mempool/mempool.git
synced 2024-11-19 18:03:00 +01:00
Don't apply age tint to accelerated txs
This commit is contained in:
parent
c45111333d
commit
7721f16f9f
@ -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)))))));
|
||||
|
Loading…
Reference in New Issue
Block a user