peer address export

environment variable should be exported to take effect i guess...
This commit is contained in:
Konstantin Avramidis 2022-01-15 17:52:45 +01:00 committed by GitHub
parent 29ff95e2c6
commit deea321aa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,7 +113,7 @@ function join_org_peers() {
--tls --cafile /var/hyperledger/fabric/organizations/ordererOrganizations/org0.example.com/msp/tlscacerts/org0-tls-ca.pem --tls --cafile /var/hyperledger/fabric/organizations/ordererOrganizations/org0.example.com/msp/tlscacerts/org0-tls-ca.pem
# Join peer1 to the channel. # Join peer1 to the channel.
CORE_PEER_ADDRESS='${org}'-peer1:7051 \ export CORE_PEER_ADDRESS='${org}'-peer1:7051
peer channel \ peer channel \
join \ join \
-b genesis_block.pb \ -b genesis_block.pb \
@ -121,7 +121,7 @@ function join_org_peers() {
--tls --cafile /var/hyperledger/fabric/organizations/ordererOrganizations/org0.example.com/msp/tlscacerts/org0-tls-ca.pem --tls --cafile /var/hyperledger/fabric/organizations/ordererOrganizations/org0.example.com/msp/tlscacerts/org0-tls-ca.pem
# Join peer2 to the channel. # Join peer2 to the channel.
CORE_PEER_ADDRESS='${org}'-peer2:7051 \ export CORE_PEER_ADDRESS='${org}'-peer2:7051
peer channel \ peer channel \
join \ join \
-b genesis_block.pb \ -b genesis_block.pb \