From 3709977aa4db634054741c7e47aa95621167fb65 Mon Sep 17 00:00:00 2001 From: ping40 Date: Fri, 22 Feb 2019 17:21:11 +0800 Subject: [PATCH] [FAB-14304] fix wrong description Change-Id: I6f3dc002566bbb899be9957af342ea24c13330ce Signed-off-by: ping40 --- common/semaphore/semaphore.go | 2 +- core/committer/txvalidator/v14/validator.go | 2 +- protoutil/blockutils.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/semaphore/semaphore.go b/common/semaphore/semaphore.go index 48e5bc926..ee9ffb17f 100644 --- a/common/semaphore/semaphore.go +++ b/common/semaphore/semaphore.go @@ -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{} diff --git a/core/committer/txvalidator/v14/validator.go b/core/committer/txvalidator/v14/validator.go index 5dbbcd50f..aa7eb9597 100644 --- a/core/committer/txvalidator/v14/validator.go +++ b/core/committer/txvalidator/v14/validator.go @@ -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) diff --git a/protoutil/blockutils.go b/protoutil/blockutils.go index b6a4d76f0..62745e8ea 100644 --- a/protoutil/blockutils.go +++ b/protoutil/blockutils.go @@ -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{{}, {}, {}}}