Skip to content

Commit

Permalink
[FAB-6082] Typo fix in custom_tx_processor
Browse files Browse the repository at this point in the history
Fix misspelling in
core/ledger/customtx/custom_tx_processor.go

Change-Id: I9445d3feb433657a8fc15850e394f889aab906fc
Signed-off-by: Boliang Chen <cblsjtu@gmail.com>
  • Loading branch information
cblsjtu committed Sep 21, 2017
1 parent e840f1b commit 350a9c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/ledger/customtx/custom_tx_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 350a9c9

Please sign in to comment.