Skip to content

Commit 724a033

Browse files
committed
[FAB-6239] Fix typos in state_based_validator.go
Fix typos and revise comments. Change-Id: I8ec941b75fb3fd91ab3e8c14e966a9317c67abdc Signed-off-by: Boliang Chen <cblsjtu@gmail.com>
1 parent 5e0727c commit 724a033

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/ledger/kvledger/txmgmt/validator/statebasedval/state_based_validator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (v *Validator) ValidateAndPrepareBatch(block *valinternal.Block, doMVCCVali
110110
return updates, nil
111111
}
112112

113-
//validate endorser transaction
113+
// validateEndorserTX validates endorser transaction
114114
func (v *Validator) validateEndorserTX(
115115
txRWSet *rwsetutil.TxRwSet,
116116
doMVCCValidation bool,
@@ -179,7 +179,7 @@ func (v *Validator) validateKVRead(ns string, kvRead *kvrwset.KVRead, updates *p
179179
return false, err
180180
}
181181

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",
183183
kvRead.Key, committedVersion, rwsetutil.NewVersion(kvRead.Version))
184184
if !version.AreSame(committedVersion, rwsetutil.NewVersion(kvRead.Version)) {
185185
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.
201201
return true, nil
202202
}
203203

204-
// validateRangeQuery performs a phatom read check i.e., it
204+
// validateRangeQuery performs a phantom read check i.e., it
205205
// checks whether the results of the range query are still the same when executed on the
206206
// statedb (latest state as of last committed block) + updates (prepared by the writes of preceding valid transactions
207207
// 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

Comments
 (0)