nooschain / chain/state-root-engine-config / selectStateRootEngineForBlockHeight
Function: selectStateRootEngineForBlockHeight()
selectStateRootEngineForBlockHeight(
database,height):Promise<StateRootEngineSelection>
Defined in: chain/state-root-engine-config.ts:181
Resolves state-root engine by consensus governance first, then env fallback.
Governance rows define chain-wide upgrades. The env fallback remains for node bootstrap, single-engine deployments, and isolated tests.
Parameters
database
StateRootEngineScheduleDatabase
height
string | number | bigint
Returns
Promise<StateRootEngineSelection>