Skip to content

nooschain v0.1.0


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

Function: buildCandidateRaftBlockEntryFromMempool()

buildCandidateRaftBlockEntryFromMempool(db, options): Promise<RaftBlockLogEntry | null>

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

Builds a Raft log entry from local mempool transactions without leaving any provisional block rows behind. Execution happens in a transaction that is intentionally rolled back after the deterministic hash/state root is known.

Parameters

db

Kysely<Database>

options

maxTransactions?

number

proposerNodeId

string

Returns

Promise<RaftBlockLogEntry | null>

Audience-first NOOSChain documentation.