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)