-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·35 lines (31 loc) · 1023 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
## Parse mode
if [[ $# -lt 1 ]] ; then
echo "Usage (lowcase): ./start.sh statedbname"
exit 0
fi
# parse a statedb subcommand if used
if [[ $# -ge 1 ]] ; then
key="$1"
if [[ "$key" == "leveldb" ]]; then
export STATEDBNAME=leveldb
shift
fi
if [[ "$key" == "rocksdb" ]]; then
export STATEDBNAME=rocksdb
shift
fi
if [[ "$key" == "boltdb" ]]; then
export STATEDBNAME=boltdb
shift
fi
if [[ "$key" == "badgerdb" ]]; then
export STATEDBNAME=badgerdb
shift
fi
fi
set -x
#../fabric-samples/test-network/network.sh up createChannel
(cd ../fabric-samples/test-network && exec ./network.sh up createChannel)
#-ccp path is relative to directory fabric-samples/test-network
#(cd ../fabric-samples/test-network && exec ./network.sh deployCC -ccn fixed-asset -ccp ../../caliper-workspace-2/smart-contract/node -ccl javascript)
(cd ../fabric-samples/test-network && exec ./network.sh deployCC -ccn fixed-asset -ccp ../../caliper-workspace-3/smart-contract/go -ccl go)