Skip to content

@lelantos-org/sdk / advanced / RootCheck

Interface: RootCheck ​

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

Result of TreeStore.verifyRoot.

mirrorRoot comes from the commitment server, which mirrors the chain. A lagging mirror or one built at the wrong depth can report a root the chain never held, so agreement with it is sufficient but not necessary for spendable. The leaf counts indicate how the trees disagree, which determines the repair; see TreeStore.reset.

Properties ​

localLeaves ​

ts
localLeaves: number;

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


localRoot ​

ts
localRoot: bigint;

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


mirrorLeaves ​

ts
mirrorLeaves: number;

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


mirrorRoot ​

ts
mirrorRoot: bigint;

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


spendable ​

ts
spendable: boolean;

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

Whether the pool would accept a proof against the local tree: the roots agree, or they differ but the chain accepts the local root.