From 0e4872a5d275b328e831c1cd1f4a137c621204e3 Mon Sep 17 00:00:00 2001 From: ujjwal G Date: Wed, 27 May 2026 21:48:54 +0530 Subject: [PATCH] Fix: Correct consensus typo and Raft support error message This commit fixes: - Typo 'consesus' -> 'consensus' in validation error messages. - A bug where the Raft support error message incorrectly interpolated the 'versionsSupportingRaft' function definition instead of a human-readable version string. Signed-off-by: ujjwal G --- src/commands/validate/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/validate/index.ts b/src/commands/validate/index.ts index 51edad0b..ad418161 100644 --- a/src/commands/validate/index.ts +++ b/src/commands/validate/index.ts @@ -297,7 +297,7 @@ export default class Validate extends Command { if (orderer.instances > 1) { const objectToEmit = { category: validationCategories.ORDERER, - message: `Orderer consesus type is set to 'solo', but number of instances is ${orderer.instances}. Only 1 instance will be created.`, + message: `Orderer consensus type is set to 'solo', but number of instances is ${orderer.instances}. Only 1 instance will be created.`, }; this.emit(validationErrorType.WARN, objectToEmit); } @@ -314,7 +314,7 @@ export default class Validate extends Command { if (orderer.instances === 1) { const objectToEmit = { category: validationCategories.ORDERER, - message: `Orderer consesus type is set to '${orderer.type}', but number of instances is 1. Network won't be fault tolerant! Consider higher value.`, + message: `Orderer consensus type is set to '${orderer.type}', but number of instances is 1. Network won't be fault tolerant! Consider higher value.`, }; this.emit(validationErrorType.WARN, objectToEmit); } @@ -322,7 +322,7 @@ export default class Validate extends Command { if (!config.versionsSupportingRaft(global.fabricVersion)) { const objectToEmit = { category: validationCategories.ORDERER, - message: `Fabric's ${global.fabricVersion} does not support Raft consensus type. Supporting versions are: ${config.versionsSupportingRaft}`, + message: `Fabric's ${global.fabricVersion} does not support Raft consensus type. Supporting versions are: 1.4.3 or higher.`, }; this.emit(validationErrorType.ERROR, objectToEmit); }