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
expectedPreviousHash
string | null
Returns
void