Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Fabric 2.5.4 and Fabric-ca 1.5.7 #723

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Make sure that you have the following required dependencies installed:
* [Intel Software Guard Extensions SSL](https://github.com/intel/intel-sgx-ssl)
(we recommend using branch `lin_2.10_1.1.1g` OpenSSL `1.1.1g`)

* Hyperledger [Fabric](https://github.com/hyperledger/fabric/tree/v2.3.3) v2.3.3
* Hyperledger [Fabric](https://github.com/hyperledger/fabric/tree/v2.5.4) v2.5.4

* Clang-format 6.x or higher

Expand Down Expand Up @@ -345,15 +345,15 @@ export PROTOC_CMD=/usr/local/proto3/bin/protoc
#### Hyperledger Fabric

Our project fetches the latest supported Fabric binaries during the build process automatically.
However, if you want to use your own Fabric binaries, please checkout Fabric 2.3.3 release using the following commands:
However, if you want to use your own Fabric binaries, please checkout Fabric 2.5.4 release using the following commands:
```bash
export FABRIC_PATH=$GOPATH/src/github.com/hyperledger/fabric
git clone https://github.com/hyperledger/fabric.git $FABRIC_PATH
cd $FABRIC_PATH; git checkout tags/v2.3.3
cd $FABRIC_PATH; git checkout tags/v2.5.4
```

Note that Fabric Private Chaincode may not work with the Fabric `main` branch.
Therefore, make sure you use the Fabric `v2.3.3` tag.
Therefore, make sure you use the Fabric `v2.5.4` tag.
Make sure the source of Fabric is in your `$GOPATH`.

## Build Fabric Private Chaincode
Expand Down
2 changes: 1 addition & 1 deletion config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ PLANTUML_IMG_FORMAT ?= png # pdf / png / svg
#--------------------------------------------------
PROJECT_NAME=fabric-private-chaincode

export FABRIC_VERSION ?= 2.5.3
export FABRIC_VERSION ?= 2.5.4

export FPC_VERSION := main
export FPC_CCENV_IMAGE ?= hyperledger/fabric-private-chaincode-ccenv:$(FPC_VERSION)
Expand Down
4 changes: 2 additions & 2 deletions fabric/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ To clean the native build, type `cd $FPC_PATH/fabric; make clean-native`.
### Wrong Fabric version
```
Patching Fabric ...
Aborting! Tag on current HEAD () does not match expected tag/v2.3.3!
Aborting! Tag on current HEAD () does not match expected tag/v2.5.4!
...
```

Seems that your Fabric is on the wrong branch.
Try to run `pushd $FABRIC_PATH; git checkout tags/v2.3.3; popd;` followed by `make` again.
Try to run `pushd $FABRIC_PATH; git checkout tags/v2.5.3; popd;` followed by `make` again.
2 changes: 1 addition & 1 deletion samples/chaincode/simple-asset-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ git clone https://github.com/hyperledger/fabric-samples
cd $FPC_PATH/samples/deployment/test-network/fabric-samples
# no we pick a specific version here to have stable experience :)
git checkout -b "works" 98028c7
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.3.3 1.4.9 -s
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.5.4 1.5.7 -s
cd $FPC_PATH/samples/deployment/test-network
./setup.sh
```
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ If you have installed them somewhere else on your system, please set `FABIC_BIN_
For instance, you can download the binaries and use them by following the commands:
```bash
cd $FPC_PATH/samples/deployment/k8s
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.3.3 1.4.9 -d -s
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.5.4 1.5.7 -d -s
export FABRIC_BIN_DIR=$(pwd)/bin
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
value: /var/hyperledger/orderer/tls/server.key
- name: ORDERER_GENERAL_CLUSTER_ROOTCAS
value: "[/var/hyperledger/orderer/tls/ca.crt]"
image: hyperledger/fabric-orderer:2.3.3
image: hyperledger/fabric-orderer:2.5.4
name: orderer
ports:
- containerPort: 7050
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
value: /var/hyperledger/orderer/tls/server.key
- name: ORDERER_GENERAL_CLUSTER_ROOTCAS
value: "[/var/hyperledger/orderer/tls/ca.crt]"
image: hyperledger/fabric-orderer:2.3.3
image: hyperledger/fabric-orderer:2.5.4
name: orderer
ports:
- containerPort: 7050
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
value: /var/hyperledger/orderer/tls/server.key
- name: ORDERER_GENERAL_CLUSTER_ROOTCAS
value: "[/var/hyperledger/orderer/tls/ca.crt]"
image: hyperledger/fabric-orderer:2.3.3
image: hyperledger/fabric-orderer:2.5.4
name: orderer
ports:
- containerPort: 7050
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org1/org1-cli-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
configMapKeyRef:
name: chaincode-config
key: FPC_MRENCLAVE
image: hyperledger/fabric-tools:2.3.3
image: hyperledger/fabric-tools:2.5.4
name: cli
tty: true
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org1/org1-peer0-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
value: 0.0.0.0:9443
- name: CORE_METRICS_PROVIDER
value: prometheus
image: hyperledger/fabric-peer:2.3.3
image: hyperledger/fabric-peer:2.5.4
name: peer0
ports:
- containerPort: 7051
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org2/org2-cli-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
configMapKeyRef:
name: chaincode-config
key: FPC_MRENCLAVE
image: hyperledger/fabric-tools:2.3.3
image: hyperledger/fabric-tools:2.5.4
name: cli
tty: true
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org2/org2-peer0-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
value: 0.0.0.0:9443
- name: CORE_METRICS_PROVIDER
value: prometheus
image: hyperledger/fabric-peer:2.3.3
image: hyperledger/fabric-peer:2.5.4
name: peer0
ports:
- containerPort: 7051
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org3/org3-cli-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
configMapKeyRef:
name: chaincode-config
key: FPC_MRENCLAVE
image: hyperledger/fabric-tools:2.3.3
image: hyperledger/fabric-tools:2.5.4
name: cli
tty: true
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org3/org3-peer0-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
value: 0.0.0.0:9443
- name: CORE_METRICS_PROVIDER
value: prometheus
image: hyperledger/fabric-peer:2.3.3
image: hyperledger/fabric-peer:2.5.4
name: peer0
ports:
- containerPort: 7051
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/test-network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cd $FPC_PATH/samples/deployment/test-network
git clone https://github.com/hyperledger/fabric-samples
cd $FPC_PATH/samples/deployment/test-network/fabric-samples
git checkout -b "works" 98028c7
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.3.3 1.4.9 -s
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.5.4 1.5.7 -s
```

Before we can start the network, we need to update the Fabric peer configuration to enable FPC support.
Expand Down
2 changes: 1 addition & 1 deletion utils/docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ FROM hyperledger/fabric-private-chaincode-base-dev:${FPC_VERSION}

# config/build params
ARG FABRIC_REPO=https://github.com/hyperledger/fabric.git
ARG FABRIC_VERSION=2.5.3
ARG FABRIC_VERSION=2.5.4

ARG FABRIC_REL_PATH=src/github.com/hyperledger/fabric
ARG FPC_REL_PATH=src/github.com/hyperledger/fabric-private-chaincode
Expand Down
2 changes: 1 addition & 1 deletion utils/docker/dev_peer_cc-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ARG SGX_MODE

# config/build params
ARG FABRIC_REPO=https://github.com/hyperledger/fabric.git
ARG FABRIC_VERSION=2.3.3
ARG FABRIC_VERSION=2.5.4
ARG FPC_REPO_URL=https://github.com/hyperledger/fabric-private-chaincode.git
ARG FPC_REPO_BRANCH_TAG_OR_COMMIT=main
ARG GIT_USER_NAME=tester
Expand Down