nooschain / chain/state-root / persistBlockStateRoot
Function: persistBlockStateRoot()
persistBlockStateRoot(
database,blockHeight,previousRootHash,newRootHash,stateRootEngineVersion?):Promise<void>
Defined in: chain/state-root.ts:355
Stores the final block state root and links it to the block row.
Parameters
database
blockHeight
string | number | bigint
previousRootHash
string | null
newRootHash
string
stateRootEngineVersion?
"iden3-v1" | "nervos-smt-v2"
Returns
Promise<void>