nooschain / verification/chain-verification-manager / ChainVerificationManager
Class: ChainVerificationManager
Defined in: verification/chain-verification-manager.ts:76
Runs scheduled or manual chain verification while persisting status.
Constructors
Constructor
new ChainVerificationManager(
db,config,logger?):ChainVerificationManager
Defined in: verification/chain-verification-manager.ts:84
Creates a manager bound to one node database and verification config.
Parameters
db
Kysely<Database>
config
logger?
warn
Returns
ChainVerificationManager
Methods
getStatus()
getStatus():
Promise<ChainVerificationStatus>
Defined in: verification/chain-verification-manager.ts:135
Reads persisted verification state and combines it with the current head.
Returns
Promise<ChainVerificationStatus>
runOnce()
runOnce(
args?):Promise<ChainVerificationRunResult>
Defined in: verification/chain-verification-manager.ts:169
Runs one manual or scheduled verification pass.
Only one run is allowed at a time. Each attempt records a run row and updates the latest verification state, including failures.
Parameters
args?
mode?
Returns
Promise<ChainVerificationRunResult>
start()
start():
void
Defined in: verification/chain-verification-manager.ts:97
Starts configured background verification timers.
The primary timer runs the configured default mode. If fullIntervalMs is set, a second timer periodically runs full-chain verification as a slower deep check.
Returns
void
stop()
stop():
void
Defined in: verification/chain-verification-manager.ts:120
Stops any active background verification timers.
Returns
void