Skip to content

Commit 569a4e3

Browse files
committed
[FAB-8951]: Move tx vscc validator into sep file
This commit moves tx vscc validator into separate file out of validator.go Change-Id: Ie3fb5b5fc2080df9f32393a17b4450f06e2b4c4b Signed-off-by: Artem Barger <bartem@il.ibm.com>
1 parent d2b5aed commit 569a4e3

File tree

3 files changed

+379
-356
lines changed

3 files changed

+379
-356
lines changed

core/committer/txvalidator/txvalidator_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import (
3333
"github.com/hyperledger/fabric/core/mocks/validator"
3434
"github.com/hyperledger/fabric/msp"
3535
mspmgmt "github.com/hyperledger/fabric/msp/mgmt"
36-
msptesttools "github.com/hyperledger/fabric/msp/mgmt/testtools"
36+
"github.com/hyperledger/fabric/msp/mgmt/testtools"
3737
"github.com/hyperledger/fabric/protos/common"
3838
"github.com/hyperledger/fabric/protos/peer"
3939
"github.com/hyperledger/fabric/protos/utils"
@@ -391,7 +391,7 @@ func TestInvalidTXsForUpgradeCC(t *testing.T) {
391391
expectTxsFltr.SetFlag(7, peer.TxValidationCode_VALID)
392392

393393
tValidator := &txValidator{}
394-
finalfltr := tValidator.invalidTXsForUpgradeCC(txsChaincodeNames, upgradedChaincodes, txsfltr)
394+
tValidator.invalidTXsForUpgradeCC(txsChaincodeNames, upgradedChaincodes, txsfltr)
395395

396-
assert.EqualValues(t, expectTxsFltr, finalfltr)
396+
assert.EqualValues(t, expectTxsFltr, txsfltr)
397397
}

0 commit comments

Comments
 (0)