Skip to content

Commit

Permalink
[FAB-4633] Support Fabric 1.0.0
Browse files Browse the repository at this point in the history
Change-Id: I20b9372872b60e2ba389b0e1559aba51e067d3cb
Signed-off-by: Troy Ronda <troy@troyronda.com>
Signed-off-by: Divyank Katira <Divyank.Katira@securekey.com>
  • Loading branch information
troyronda authored and d1vyank committed Jul 11, 2017
1 parent cc8968e commit 4e0def9
Show file tree
Hide file tree
Showing 18 changed files with 1,273 additions and 998 deletions.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,20 @@
# depend: installs test dependencies
# unit-test: runs all the unit tests
# integration-test: runs all the integration tests
# race-test: runs tests with race detector
# race-test: runs tests with race detector
# checks: runs all check conditions (license, spelling, linting)
# clean: stops docker conatainers used for integration testing
# mock-gen: generate mocks needed for testing (using mockgen)
#
#
# Instructions to generate .tx files used for creating channels:
# Download the configtxgen binary for your OS from (it is located in the .tar.gz file):
# https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric
# Sample command: $ path/to/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx testchannel.tx -channelID testchannel
# More Docs: http://hyperledger-fabric.readthedocs.io/en/latest/configtxgen.html
#



export ARCH=$(shell uname -m)
export LDFLAGS=-ldflags=-s
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ repository.
### Compatibility

This client SDK was last tested and found to be compatible with the following Hyperledger Fabric commit levels:
- fabric: v1.0.0-beta, v1.0.0-rc1
- fabric-ca: v1.0.0-beta, v1.0.0-rc1
- fabric: v1.0.0
- fabric-ca: v1.0.0

### Running the test suite

Expand Down Expand Up @@ -135,14 +135,14 @@ Alternatively you can build and run Fabric on your own box using the following c
cd $GOPATH/src/github.com/hyperledger/
git clone https://github.com/hyperledger/fabric
cd $GOPATH/src/github.com/hyperledger/fabric/
git checkout v1.0.0-rc1
git checkout v1.0.0
make docker
# Build fabric-ca:
cd $GOPATH/src/github.com/hyperledger/
git clone https://github.com/hyperledger/fabric-ca
cd $GOPATH/src/github.com/hyperledger/fabric-ca/
git checkout v1.0.0-rc1
git checkout v1.0.0
make docker
# Start fabric - latest-env.sh overrides the default docker tags in .env
Expand Down
10 changes: 5 additions & 5 deletions test/fixtures/.env
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
# Default architecture
ARCH=x86_64

FABRIC_CA_FIXTURE_TAG=1.0.0-rc1
FABRIC_ORDERER_FIXTURE_TAG=1.0.0-rc1
FABRIC_PEER_FIXTURE_TAG=1.0.0-rc1
FABRIC_COUCHDB_FIXTURE_TAG=1.0.0-rc1
FABRIC_BUILDER_FIXTURE_TAG=1.0.0-rc1
FABRIC_CA_FIXTURE_TAG=1.0.0
FABRIC_ORDERER_FIXTURE_TAG=1.0.0
FABRIC_PEER_FIXTURE_TAG=1.0.0
FABRIC_COUCHDB_FIXTURE_TAG=1.0.0
FABRIC_BUILDER_FIXTURE_TAG=1.0.0

FABRIC_CA_FIXTURE_IMAGE=hyperledger/fabric-ca
FABRIC_ORDERER_FIXTURE_IMAGE=hyperledger/fabric-orderer
Expand Down
Binary file added test/fixtures/channel/orgchannel.tx
Binary file not shown.
2 changes: 1 addition & 1 deletion test/integration/orgs/test_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func createTestChannel(t *testing.T) {
}

err = admin.CreateOrUpdateChannel(orgTestClient, ordererAdminUser, org1AdminUser,
orgTestChannel, "../../fixtures/channel/mychannel.tx")
orgTestChannel, "../../fixtures/channel/orgchannel.tx")
failTestIfError(err, t)
// Allow orderer to process channel creation
time.Sleep(time.Millisecond * 500)
Expand Down
4 changes: 2 additions & 2 deletions test/scripts/fabric_test_commitlevel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ export USE_PREBUILT_IMAGES=true

#file used for automatic integration build test
#This should always match the compatibility specified in the README.md
export FABRIC_COMMIT=v1.0.0-rc1
export FABRIC_CA_COMMIT=v1.0.0-rc1
export FABRIC_COMMIT=v1.0.0
export FABRIC_CA_COMMIT=v1.0.0
36 changes: 27 additions & 9 deletions vendor/github.com/hyperledger/fabric-ca/lib/dbaccessor.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions vendor/github.com/hyperledger/fabric/msp/configbuilder.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions vendor/golang.org/x/crypto/bcrypt/base64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4e0def9

Please sign in to comment.