Skip to content

@lelantos-org/sdk / index / TreeOutOfSyncError

Class: TreeOutOfSyncError ​

Defined in: @lelantos-org/sdk/dist/errors/network.d.ts:52

The local Merkle tree does not match the root the pool accepts, even after resyncing and rebuilding it from leaf 0: the commitment feed is serving leaves that do not reconcile with the root it reports.

Checked before proving, so nothing was spent. Retryable: a lagging or repaired feed resolves it.

Extends ​

Constructors ​

Constructor ​

ts
new TreeOutOfSyncError(args, opts?): TreeOutOfSyncError;

Defined in: @lelantos-org/sdk/dist/errors/network.d.ts:57

Parameters ​

ParameterType
args{ localRoot: string | bigint; mirrorRoot: string | bigint; }
args.localRootstring | bigint
args.mirrorRoot?string | bigint
opts?WalletErrorOptions

Returns ​

TreeOutOfSyncError

Overrides ​

WalletError.constructor

Properties ​

cause? ​

ts
optional cause?: unknown;

Defined in: typescript/lib/lib.es2022.error.d.ts:26

Inherited from ​

WalletError.cause


code ​

ts
readonly code: "TREE_OUT_OF_SYNC";

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:39

Inherited from ​

WalletError.code


context ​

ts
readonly context: ErrorContext;

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:46

Inherited from ​

WalletError.context


details? ​

ts
readonly optional details?: Readonly<Record<string, string | number | boolean>>;

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:48

Extra diagnostic scalars for this failure, when any.

Inherited from ​

WalletError.details


localRoot ​

ts
readonly localRoot: string;

Defined in: @lelantos-org/sdk/dist/errors/network.d.ts:54

Root of the locally rebuilt tree, as a decimal field element.


message ​

ts
message: string;

Defined in: typescript/lib/lib.es5.d.ts:1077

Inherited from ​

WalletError.message


mirrorRoot ​

ts
readonly mirrorRoot: string;

Defined in: @lelantos-org/sdk/dist/errors/network.d.ts:56

Root the commitment feed reports, as a decimal field element.


name ​

ts
name: string;

Defined in: typescript/lib/lib.es5.d.ts:1076

Inherited from ​

WalletError.name


retryable ​

ts
readonly retryable: boolean;

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:45

Whether the same call, unchanged, may succeed later without user action: a timeout, a 5xx, notes held by an earlier spend. false means retrying as-is will fail the same way.

Inherited from ​

WalletError.retryable


stack? ​

ts
optional stack?: string;

Defined in: typescript/lib/lib.es5.d.ts:1078

Inherited from ​

WalletError.stack

Methods ​

withContext() ​

ts
withContext(extra): this;

Defined in: @lelantos-org/sdk/dist/errors/base.d.ts:53

Merge additional context in place and return this for rethrowing.

Parameters ​

ParameterType
extraErrorContext

Returns ​

this

Inherited from ​

WalletError.withContext