oc · docs
docs / documentation

@orangecheck/vote-core


@orangecheck/vote-core / resolvePollSnapshot

Function: resolvePollSnapshot()

function resolvePollSnapshot(poll: Pick<Poll, "snapshot_block" | "deadline">, source: BlockTimeSource): Promise<SnapshotResolution>;

Defined in: vote-core/src/snapshot.ts:111

The snapshot height for any poll: snapshot_block itself when it is a number (which must also carry 6 confirmations), otherwise the §3 deadline resolution.

Parameters

ParameterType
pollPick&lt;Poll, "snapshot_block" | "deadline">
sourceBlockTimeSource

Returns

Promise&lt;SnapshotResolution>