nooschain / chain/state-root-engine-config / stateRootEngineVersionForBlockHeight
Function: stateRootEngineVersionForBlockHeight()
stateRootEngineVersionForBlockHeight(
height):"iden3-v1"|"nervos-smt-v2"
Defined in: chain/state-root-engine-config.ts:105
Resolves the state-root engine for a block height.
Without an activation height, the configured engine applies to all blocks. With an activation height, blocks before the boundary remain iden3-v1 and blocks at/after the boundary use NOOS_STATE_ROOT_ENGINE. This keeps legacy migration tests explicit even though new chains default to Nervos.
Parameters
height
string | number | bigint
Returns
"iden3-v1" | "nervos-smt-v2"