diff --git a/public/nodes.js b/public/nodes.js index fea4f182..c80727f6 100644 --- a/public/nodes.js +++ b/public/nodes.js @@ -185,8 +185,9 @@ if (n.hash_size_inconsistent && p.payload_type === 4 && p.raw_hex) { const pb = parseInt(p.raw_hex.slice(2, 4), 16); const hs = ((pb >> 6) & 0x3) + 1; - const isDefault = hs === n.hash_size; - hashSizeBadge = ` ${hs}B`; + const hsColor = hs >= 3 ? '#16a34a' : hs === 2 ? '#86efac' : '#f97316'; + const hsFg = hs === 2 ? '#064e3b' : '#fff'; + hashSizeBadge = ` ${hs}B`; } return `