Skip to content

nooschain v0.1.0


nooschain / consensus/adapters/raft/raft-log-entry / commitRaftBlockEntry

Function: commitRaftBlockEntry()

commitRaftBlockEntry(db, entry): Promise<{ hash: string; height: string; stateRoot: string | null; transactionHashes: string[]; }>

Defined in: consensus/adapters/raft/raft-log-entry.ts:245

Applies a committed Raft block entry locally and verifies that the resulting block hash and state root match the committed envelope. Existing matching blocks are idempotent; conflicting finalized blocks are rejected.

Parameters

db

Kysely<Database>

entry

RaftBlockLogEntry

Returns

Promise<{ hash: string; height: string; stateRoot: string | null; transactionHashes: string[]; }>

Audience-first NOOSChain documentation.