nooschain / sync/chain-verifier / verifyChainRange
Function: verifyChainRange()
verifyChainRange(
database,fromHeight?,toHeight?):Promise<ChainVerificationResult>
Defined in: sync/chain-verifier.ts:74
Verifies chain structure and transaction integrity over a height range.
If no explicit range is provided, verification starts after the latest checkpoint and runs through the current head. This allows checkpointed nodes to avoid rechecking historical blocks already represented by a verified snapshot checkpoint.
Parameters
database
fromHeight?
string | number | bigint
toHeight?
string | number | bigint
Returns
Promise<ChainVerificationResult>