Skip to content

Commit

Permalink
[FAB-8951]: Move tx vscc validator into sep file
Browse files Browse the repository at this point in the history
This commit moves tx vscc validator into separate file out of
validator.go

Change-Id: Ie3fb5b5fc2080df9f32393a17b4450f06e2b4c4b
Signed-off-by: Artem Barger <[email protected]>
  • Loading branch information
C0rWin committed Mar 19, 2018
1 parent d2b5aed commit 569a4e3
Show file tree
Hide file tree
Showing 3 changed files with 379 additions and 356 deletions.
6 changes: 3 additions & 3 deletions core/committer/txvalidator/txvalidator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"github.com/hyperledger/fabric/core/mocks/validator"
"github.com/hyperledger/fabric/msp"
mspmgmt "github.com/hyperledger/fabric/msp/mgmt"
msptesttools "github.com/hyperledger/fabric/msp/mgmt/testtools"
"github.com/hyperledger/fabric/msp/mgmt/testtools"
"github.com/hyperledger/fabric/protos/common"
"github.com/hyperledger/fabric/protos/peer"
"github.com/hyperledger/fabric/protos/utils"
Expand Down Expand Up @@ -391,7 +391,7 @@ func TestInvalidTXsForUpgradeCC(t *testing.T) {
expectTxsFltr.SetFlag(7, peer.TxValidationCode_VALID)

tValidator := &txValidator{}
finalfltr := tValidator.invalidTXsForUpgradeCC(txsChaincodeNames, upgradedChaincodes, txsfltr)
tValidator.invalidTXsForUpgradeCC(txsChaincodeNames, upgradedChaincodes, txsfltr)

assert.EqualValues(t, expectTxsFltr, finalfltr)
assert.EqualValues(t, expectTxsFltr, txsfltr)
}
Loading

0 comments on commit 569a4e3

Please sign in to comment.