Skip to content

@lelantos-org/sdk / advanced / TreeVerifyOpts

Interface: TreeVerifyOpts ​

Defined in: @lelantos-org/sdk/dist/sync/tree-store.d.ts:90

Extends ​

Properties ​

isKnownRoot? ​

ts
optional isKnownRoot?: IsKnownRoot;

Defined in: @lelantos-org/sdk/dist/sync/tree-store.d.ts:95

Asks the pool whether it would accept the local root. Supplied by the caller because TreeStore has no chain access of its own.


maxChunks? ​

ts
optional maxChunks?: number;

Defined in: @lelantos-org/sdk/dist/sync/chunk-feed.d.ts:26

Defaults to MAX_CHUNKS; paging is always bounded.

Inherited from ​

TreeSyncOpts.maxChunks


onProgress? ​

ts
optional onProgress?: (p) => void;

Defined in: @lelantos-org/sdk/dist/sync/tree-store.d.ts:99

Per-chunk progress, so a stuck sync is observable.

Parameters ​

ParameterType
p{ chunkId: number; leaves: number; syncedCount: number; }
p.chunkIdnumber
p.leavesnumber
p.syncedCountnumber

Returns ​

void

Inherited from ​

TreeSyncOpts.onProgress


signal? ​

ts
optional signal?: AbortSignal;

Defined in: @lelantos-org/sdk/dist/sync/chunk-feed.d.ts:27

Inherited from ​

TreeSyncOpts.signal