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
# Join peer1 to the channel.
CORE_PEER_ADDRESS='${org}'-peer1:7051 \
export CORE_PEER_ADDRESS='${org}'-peer1:7051
peer channel \
join \
-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
# Join peer2 to the channel.
CORE_PEER_ADDRESS='${org}'-peer2:7051 \
export CORE_PEER_ADDRESS='${org}'-peer2:7051
peer channel \
join \
-b genesis_block.pb \
@ -198,4 +198,4 @@ function channel_up() {
# error to be returned from the channel up. We might want to render the warning in
# this case to indicate that the call was made but had a nonzero exit.
# update_anchor_peers peer1
}
}