Skip to content

nooschain v0.1.0


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

Function: compareBlock()

compareBlock(expected, actual): string[]

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

Compares a remote block DTO with the locally executed/persisted block row.

This is used after local deterministic execution to prove that the sync peer and this node ended with the same block hash, Merkle root, state root, and transaction count for the height.

Parameters

expected

BlockDto

actual

hash

string

merkle_root

string

state_root

string | null

state_root_engine_version?

string

transaction_count

number

Returns

string[]

Audience-first NOOSChain documentation.