mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
Signed-off-by: AadithyanRaju <aadithyan75@gmail.com> Signed-off-by: Aadithyan Raju <93834376+AadithyanRaju@users.noreply.github.com>
30 lines
712 B
Bash
Executable file
30 lines
712 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eou pipefail
|
|
|
|
# All checks run in the workshop root folder
|
|
cd "$(dirname "$0")"/..
|
|
|
|
. checks/utils.sh
|
|
|
|
EXIT=0
|
|
|
|
function chaincode_ready() {
|
|
peer chaincode query -n asset-transfer -C mychannel -c '{"Args":["org.hyperledger.fabric:GetMetadata"]}'
|
|
}
|
|
|
|
must_declare WORKSHOP_CRYPTO
|
|
|
|
must_declare CORE_PEER_LOCALMSPID
|
|
must_declare CORE_PEER_ADDRESS
|
|
must_declare CORE_PEER_TLS_ENABLED
|
|
must_declare CORE_PEER_MSPCONFIGPATH
|
|
must_declare CORE_PEER_TLS_ROOTCERT_FILE
|
|
must_declare CORE_PEER_CLIENT_CONNTIMEOUT
|
|
must_declare CORE_PEER_DELIVERYCLIENT_CONNTIMEOUT
|
|
must_declare ORDERER_ENDPOINT
|
|
must_declare ORDERER_TLS_CERT
|
|
|
|
check chaincode_ready "asset-transfer chaincode is running"
|
|
|
|
exit $EXIT
|