Skip to content

Commit

Permalink
[FAB-14304] fix wrong description
Browse files Browse the repository at this point in the history
Change-Id: I6f3dc002566bbb899be9957af342ea24c13330ce
Signed-off-by: ping40 <[email protected]>
  • Loading branch information
ping40 authored and mastersingh24 committed Mar 8, 2019
1 parent a1f4eb0 commit 3709977
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/semaphore/semaphore.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package semaphore

import "context"

// Semaaphore is a buffered channel based implementation of a counting
// Semaphore is a buffered channel based implementation of a counting
// semaphore.
type Semaphore chan struct{}

Expand Down
2 changes: 1 addition & 1 deletion core/committer/txvalidator/v14/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (v *TxValidator) Validate(block *common.Block) error {
startValidation := time.Now() // timer to log Validate block duration
logger.Debugf("[%s] START Block Validation for block [%d]", v.ChainID, block.Header.Number)

// Initialize trans as valid here, then set invalidation reason code upon invalidation below
// Initialize trans as not_validated here, then set invalidation reason code upon invalidation below
txsfltr := ledgerUtil.NewTxValidationFlags(len(block.Data.Data))
// txsChaincodeNames records all the invoked chaincodes by tx in a block
txsChaincodeNames := make(map[int]*sysccprovider.ChaincodeInstance)
Expand Down
2 changes: 1 addition & 1 deletion protoutil/blockutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func CopyBlockMetadata(src *cb.Block, dst *cb.Block) {
InitBlockMetadata(dst)
}

// InitBlockMetadata copies metadata from one block into another
// InitBlockMetadata initializes metadata structure
func InitBlockMetadata(block *cb.Block) {
if block.Metadata == nil {
block.Metadata = &cb.BlockMetadata{Metadata: [][]byte{{}, {}, {}}}
Expand Down

0 comments on commit 3709977

Please sign in to comment.