From 350a9c9e25621b5fc47c9b58cf5c497a843750a0 Mon Sep 17 00:00:00 2001 From: Boliang Chen Date: Wed, 13 Sep 2017 15:16:16 +0800 Subject: [PATCH] [FAB-6082] Typo fix in custom_tx_processor Fix misspelling in core/ledger/customtx/custom_tx_processor.go Change-Id: I9445d3feb433657a8fc15850e394f889aab906fc Signed-off-by: Boliang Chen --- core/ledger/customtx/custom_tx_processor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/ledger/customtx/custom_tx_processor.go b/core/ledger/customtx/custom_tx_processor.go index 33a5f5eb6e9..c53986ef95d 100644 --- a/core/ledger/customtx/custom_tx_processor.go +++ b/core/ledger/customtx/custom_tx_processor.go @@ -20,15 +20,15 @@ var once sync.Once type Processors map[common.HeaderType]Processor // Processor allows to generate simulation results during commit time for custom transactions. -// A custom may repersent the information in a propriety fashion and can use this process to translate +// A custom processor may represent the information in a propriety fashion and can use this process to translate // the information into the form of `TxSimulationResults`. Because, the original information is signed in a // custom representation, an implementation of a `Processor` should be cautious that the custom representation -// is used for simution in an deterministic fashion and should take care of comaptibility cross fabric versions +// is used for simulation in an deterministic fashion and should take care of compatibility cross fabric versions. type Processor interface { GenerateSimulationResults(txEnvelop *common.Envelope, simulator ledger.TxSimulator) error } -// Initialize sets the custom processors. This function is expected to be invoked only during ledgermgmt.Initialize +// Initialize sets the custom processors. This function is expected to be invoked only during ledgermgmt.Initialize() function. func Initialize(customTxProcessors Processors) { once.Do(func() { initialize(customTxProcessors)