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
readonlyname:string
Defined in: chain/state-root-engines/external-process-state-root-engine.ts:124
Implementation of
source
readonlysource:"external_process"
Defined in: chain/state-root-engines/external-process-state-root-engine.ts:125
Implementation of
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
Returns
Promise<StateRootEngineResult>
Implementation of
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
Returns
Promise<StateRootEngineResult>