live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/vote-core


@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

ParameterType
uUtxo
snapshotnumber

Returns

number