Skip to content

Commit

Permalink
[FAB-6239] Fix typos in state_based_validator.go
Browse files Browse the repository at this point in the history
Fix typos and revise comments.

Change-Id: I8ec941b75fb3fd91ab3e8c14e966a9317c67abdc
Signed-off-by: Boliang Chen <[email protected]>
  • Loading branch information
cblsjtu committed Sep 20, 2017
1 parent 5e0727c commit 724a033
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (v *Validator) ValidateAndPrepareBatch(block *valinternal.Block, doMVCCVali
return updates, nil
}

//validate endorser transaction
// validateEndorserTX validates endorser transaction
func (v *Validator) validateEndorserTX(
txRWSet *rwsetutil.TxRwSet,
doMVCCValidation bool,
Expand Down Expand Up @@ -179,7 +179,7 @@ func (v *Validator) validateKVRead(ns string, kvRead *kvrwset.KVRead, updates *p
return false, err
}

logger.Debugf("Comapring versions for key [%s]: committed version=%#v and read version=%#v",
logger.Debugf("Comparing versions for key [%s]: committed version=%#v and read version=%#v",
kvRead.Key, committedVersion, rwsetutil.NewVersion(kvRead.Version))
if !version.AreSame(committedVersion, rwsetutil.NewVersion(kvRead.Version)) {
logger.Debugf("Version mismatch for key [%s:%s]. Committed version = [%#v], Version in readSet [%#v]",
Expand All @@ -201,7 +201,7 @@ func (v *Validator) validateRangeQueries(ns string, rangeQueriesInfo []*kvrwset.
return true, nil
}

// validateRangeQuery performs a phatom read check i.e., it
// validateRangeQuery performs a phantom read check i.e., it
// checks whether the results of the range query are still the same when executed on the
// statedb (latest state as of last committed block) + updates (prepared by the writes of preceding valid transactions
// in the current block and yet to be committed as part of group commit at the end of the validation of the block)
Expand Down

0 comments on commit 724a033

Please sign in to comment.