Skip to content

nooschain v0.1.0


nooschain / chain/state-root-engines/external-process-state-root-engine / ExternalProcessStateRootEngine

Class: ExternalProcessStateRootEngine

Defined in: chain/state-root-engines/external-process-state-root-engine.ts:123

Stateless process-backed state-root benchmark engine.

Every call writes one vector file, invokes the candidate once, and then optionally removes the vector file. Keeping the process boundary coarse mirrors a sidecar/rebuild workload rather than per-leaf RPC.

Implements

Constructors

Constructor

new ExternalProcessStateRootEngine(config): ExternalProcessStateRootEngine

Defined in: chain/state-root-engines/external-process-state-root-engine.ts:127

Parameters

config

ExternalProcessStateRootEngineConfig

Returns

ExternalProcessStateRootEngine

Properties

name

readonly name: string

Defined in: chain/state-root-engines/external-process-state-root-engine.ts:124

Implementation of

StateRootEngine.name


source

readonly source: "external_process"

Defined in: chain/state-root-engines/external-process-state-root-engine.ts:125

Implementation of

StateRootEngine.source

Methods

applyBatch()

applyBatch(input): Promise<StateRootEngineResult>

Defined in: chain/state-root-engines/external-process-state-root-engine.ts:132

Applies initial leaves followed by ordered block mutations through the sidecar.

Parameters

input

StateRootApplyInput

Returns

Promise<StateRootEngineResult>

Implementation of

StateRootEngine.applyBatch


rebuildFromLeaves()

rebuildFromLeaves(leaves): Promise<StateRootEngineResult>

Defined in: chain/state-root-engines/external-process-state-root-engine.ts:141

Rebuilds the sidecar root from live materialized leaves in key order.

Parameters

leaves

StateRootEngineLeaf[]

Returns

Promise<StateRootEngineResult>

Implementation of

StateRootEngine.rebuildFromLeaves

Audience-first NOOSChain documentation.