- highlight coinbase spends
- highlight very old (5+ year) UTXO spends
To do this, when summarizing tx details store whether it's a coinbase spend and the time of input txs
span(title=`This input spends a coinbase output (mining reward).`, data-toggle="tooltip") coinbase-spend
if (vout.utxoTime)
- var deltaT = tx.time - vout.utxoTime
- var deltaTYears = deltaT / 60 / 60 / 24 / 365
if (deltaTYears > 5)
span.mr-2(title=`This UTXO was very old! It existed for ${parseInt(deltaTYears)}+ years - from ${moment.utc(new Date(vout.utxoTime * 1000)).format('MMM D, Y')} until ${moment.utc(new Date(tx.time * 1000)).format('MMM D, Y')} - before being spent (destroyed) in this transaction!`, data-toggle="tooltip")