@@ -110,7 +110,7 @@ func (v *Validator) ValidateAndPrepareBatch(block *valinternal.Block, doMVCCVali
110
110
return updates , nil
111
111
}
112
112
113
- //validate endorser transaction
113
+ // validateEndorserTX validates endorser transaction
114
114
func (v * Validator ) validateEndorserTX (
115
115
txRWSet * rwsetutil.TxRwSet ,
116
116
doMVCCValidation bool ,
@@ -179,7 +179,7 @@ func (v *Validator) validateKVRead(ns string, kvRead *kvrwset.KVRead, updates *p
179
179
return false , err
180
180
}
181
181
182
- logger .Debugf ("Comapring versions for key [%s]: committed version=%#v and read version=%#v" ,
182
+ logger .Debugf ("Comparing versions for key [%s]: committed version=%#v and read version=%#v" ,
183
183
kvRead .Key , committedVersion , rwsetutil .NewVersion (kvRead .Version ))
184
184
if ! version .AreSame (committedVersion , rwsetutil .NewVersion (kvRead .Version )) {
185
185
logger .Debugf ("Version mismatch for key [%s:%s]. Committed version = [%#v], Version in readSet [%#v]" ,
@@ -201,7 +201,7 @@ func (v *Validator) validateRangeQueries(ns string, rangeQueriesInfo []*kvrwset.
201
201
return true , nil
202
202
}
203
203
204
- // validateRangeQuery performs a phatom read check i.e., it
204
+ // validateRangeQuery performs a phantom read check i.e., it
205
205
// checks whether the results of the range query are still the same when executed on the
206
206
// statedb (latest state as of last committed block) + updates (prepared by the writes of preceding valid transactions
207
207
// in the current block and yet to be committed as part of group commit at the end of the validation of the block)
0 commit comments