Skip to content

nooschain v0.1.0


nooschain / node-sync/remote-block-validation / validateRemoteBlockBeforeInsert

Function: validateRemoteBlockBeforeInsert()

validateRemoteBlockBeforeInsert(block, expectedPreviousHash): void

Defined in: node-sync/remote-block-validation.ts:60

Validates a remote block before inserting it into the local database.

Throws SyncError with stable codes that can be translated into conflict records, peer-score events, and incident decisions by higher layers.

Parameters

block

BlockDto

expectedPreviousHash

string | null

Returns

void

Audience-first NOOSChain documentation.