@orangecheck/vote-core / ageDays
Function: ageDays()
function ageDays(u: Utxo, snapshot: number): number;
Defined in: weight.ts:13
Age of a UTXO in days at snapshot block, per SPEC §7.3. age_days(u, H) = max(0, floor((H - u.confirmed_height) * 600 / 86400))
Parameters
| Parameter | Type |
|---|---|
u | Utxo |
snapshot | number |
Returns
number