Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/config/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ const SERVER_CONFIG: StrictServerConfiguration = {
formingNodesPerCycle: 7,
downNodeFilteringEnabled: false,
useFactCorrespondingTell: true,
factv2: false, // FACT v2 algorithm - disabled by default
resubmitStandbyAddWaitDuration: 1000, // 1 second in ms
requiredVotesPercentage: 2 / 3.0,
timestampCacheFix: true,
Expand Down
4 changes: 4 additions & 0 deletions src/logger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ export type LogFlags = {
p2pSyncDebug: boolean // extra logging for debugging sync issues

p2pExtraHeavyLogs: boolean // extra heavy logs to use with caution

fact: boolean // FACT algorithm logging for debugging and monitoring
}

export let logFlags: LogFlags = {
Expand Down Expand Up @@ -172,6 +174,8 @@ export let logFlags: LogFlags = {
p2pSyncDebug: false,

p2pExtraHeavyLogs: false,

fact: false, // FACT algorithm logging - disabled by default
}

const filePath1 = path.join(process.cwd(), 'data-logs', 'cycleRecords1.txt')
Expand Down
2 changes: 2 additions & 0 deletions src/shardus/shardus-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,8 @@ export interface ServerConfiguration {
downNodeFilteringEnabled: boolean
/** Whether to use upgraded FACT corresponding tell algorithm */
useFactCorrespondingTell: boolean
/** Whether to use FACT v2 algorithm (enhanced version with improved verification) */
factv2?: boolean
// /** The number of ms to wait to resubmit a standby add request to an active node if we get an error */
resubmitStandbyAddWaitDuration: number
// /** The percentage of votes required to confirm transaction*/
Expand Down
Loading
Loading