Skip to content

nooschain v0.1.0


nooschain / consensus/config / RaftConsensusConfig

Interface: RaftConsensusConfig

Defined in: consensus/config.ts:17

Configuration shared by Noosraft and the HashiCorp Go external engine.

Properties

autoBuildBlocks?

optional autoBuildBlocks?: boolean

Defined in: consensus/config.ts:30


bindUrl?

optional bindUrl?: string

Defined in: consensus/config.ts:33


blockIntervalMs?

optional blockIntervalMs?: number

Defined in: consensus/config.ts:31


clusterId

clusterId: string

Defined in: consensus/config.ts:22


electionTimeoutMs

electionTimeoutMs: number

Defined in: consensus/config.ts:25


engine

engine: "noosraft" | "hashicorp-go"

Defined in: consensus/config.ts:20


external?

optional external?: object

Defined in: consensus/config.ts:63

args?

optional args?: string[]

command

command: string

workingDirectory?

optional workingDirectory?: string


hashicorpGo?

optional hashicorpGo?: object

Defined in: consensus/config.ts:41

autoRestart

autoRestart: boolean

binaryPath

binaryPath: string

bootstrap

bootstrap: boolean

callbackBaseUrl

callbackBaseUrl: string

dataDir

dataDir: string

httpBind

httpBind: string

maxRestarts

maxRestarts: number

mtlsRequired

mtlsRequired: boolean

raftBind?

optional raftBind?: string

restartBackoffMs

restartBackoffMs: number

tcpMtlsRequired?

optional tcpMtlsRequired?: boolean

tcpTlsCaPath?

optional tcpTlsCaPath?: string

tcpTlsCertPath?

optional tcpTlsCertPath?: string

tcpTlsEnabled?

optional tcpTlsEnabled?: boolean

tcpTlsKeyPath?

optional tcpTlsKeyPath?: string

tcpTlsServerName?

optional tcpTlsServerName?: string

tlsCaPath?

optional tlsCaPath?: string

tlsCertPath?

optional tlsCertPath?: string

tlsEnabled

tlsEnabled: boolean

tlsKeyPath?

optional tlsKeyPath?: string


heartbeatIntervalMs

heartbeatIntervalMs: number

Defined in: consensus/config.ts:26


implementation

implementation: "typescript" | "external_process"

Defined in: consensus/config.ts:19


installSnapshotEnabled

installSnapshotEnabled: boolean

Defined in: consensus/config.ts:28


maxTransactionsPerBlock?

optional maxTransactionsPerBlock?: number

Defined in: consensus/config.ts:32


mode

mode: "raft"

Defined in: consensus/config.ts:18


nodeId

nodeId: string

Defined in: consensus/config.ts:21


observerNodeIds

observerNodeIds: string[]

Defined in: consensus/config.ts:24


peers?

optional peers?: object[]

Defined in: consensus/config.ts:34

baseUrl

baseUrl: string

callbackBaseUrl?

optional callbackBaseUrl?: string

nodeId

nodeId: string

peerId?

optional peerId?: string

raftAddress?

optional raftAddress?: string


snapshotThresholdEntries

snapshotThresholdEntries: number

Defined in: consensus/config.ts:29


transport

transport: "external_process" | "in_process" | "http"

Defined in: consensus/config.ts:27


voterNodeIds

voterNodeIds: string[]

Defined in: consensus/config.ts:23

Audience-first NOOSChain documentation.