@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
| Parameter | Type |
|---|---|
poll | Pick<Poll, "snapshot_block" | "deadline"> |
source | BlockTimeSource |
Returns
Promise<SnapshotResolution>