mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 17:45:10 +00:00
add optional extra arguments to lifecycle commands for more flexibility
Signed-off-by: Arne Rutjes <arne123@gmail.com>
This commit is contained in:
parent
62f304a98f
commit
9a05e0bbea
1 changed files with 9 additions and 5 deletions
|
|
@ -153,7 +153,8 @@ function query_chaincode() {
|
||||||
peer chaincode query \
|
peer chaincode query \
|
||||||
-n $cc_name \
|
-n $cc_name \
|
||||||
-C $CHANNEL_NAME \
|
-C $CHANNEL_NAME \
|
||||||
-c $@
|
-c $@ \
|
||||||
|
${QUERY_EXTRA_ARGS}
|
||||||
}
|
}
|
||||||
|
|
||||||
function query_chaincode_metadata() {
|
function query_chaincode_metadata() {
|
||||||
|
|
@ -186,7 +187,8 @@ function invoke_chaincode() {
|
||||||
-c $@ \
|
-c $@ \
|
||||||
--orderer org0-orderer1.${DOMAIN}:${NGINX_HTTPS_PORT} \
|
--orderer org0-orderer1.${DOMAIN}:${NGINX_HTTPS_PORT} \
|
||||||
--connTimeout ${ORDERER_TIMEOUT} \
|
--connTimeout ${ORDERER_TIMEOUT} \
|
||||||
--tls --cafile ${TEMP_DIR}/channel-msp/ordererOrganizations/org0/orderers/org0-orderer1/tls/signcerts/tls-cert.pem
|
--tls --cafile ${TEMP_DIR}/channel-msp/ordererOrganizations/org0/orderers/org0-orderer1/tls/signcerts/tls-cert.pem \
|
||||||
|
${INVOKE_EXTRA_ARGS}
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
}
|
}
|
||||||
|
|
@ -324,7 +326,7 @@ function install_chaincode_for() {
|
||||||
|
|
||||||
export_peer_context $org $peer
|
export_peer_context $org $peer
|
||||||
|
|
||||||
peer lifecycle chaincode install $cc_package
|
peer lifecycle chaincode install $cc_package ${INSTALL_EXTRA_ARGS}
|
||||||
|
|
||||||
pop_fn
|
pop_fn
|
||||||
}
|
}
|
||||||
|
|
@ -357,7 +359,8 @@ function approve_chaincode() {
|
||||||
--sequence 1 \
|
--sequence 1 \
|
||||||
--orderer org0-orderer1.${DOMAIN}:${NGINX_HTTPS_PORT} \
|
--orderer org0-orderer1.${DOMAIN}:${NGINX_HTTPS_PORT} \
|
||||||
--connTimeout ${ORDERER_TIMEOUT} \
|
--connTimeout ${ORDERER_TIMEOUT} \
|
||||||
--tls --cafile ${TEMP_DIR}/channel-msp/ordererOrganizations/org0/orderers/org0-orderer1/tls/signcerts/tls-cert.pem
|
--tls --cafile ${TEMP_DIR}/channel-msp/ordererOrganizations/org0/orderers/org0-orderer1/tls/signcerts/tls-cert.pem \
|
||||||
|
${APPROVE_EXTRA_ARGS}
|
||||||
|
|
||||||
pop_fn
|
pop_fn
|
||||||
}
|
}
|
||||||
|
|
@ -379,7 +382,8 @@ function commit_chaincode() {
|
||||||
--sequence 1 \
|
--sequence 1 \
|
||||||
--orderer org0-orderer1.${DOMAIN}:${NGINX_HTTPS_PORT} \
|
--orderer org0-orderer1.${DOMAIN}:${NGINX_HTTPS_PORT} \
|
||||||
--connTimeout ${ORDERER_TIMEOUT} \
|
--connTimeout ${ORDERER_TIMEOUT} \
|
||||||
--tls --cafile ${TEMP_DIR}/channel-msp/ordererOrganizations/org0/orderers/org0-orderer1/tls/signcerts/tls-cert.pem
|
--tls --cafile ${TEMP_DIR}/channel-msp/ordererOrganizations/org0/orderers/org0-orderer1/tls/signcerts/tls-cert.pem \
|
||||||
|
${COMMIT_EXTRA_ARGS}
|
||||||
|
|
||||||
pop_fn
|
pop_fn
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue