Skip to content

Commit

Permalink
Remove unused param in ext miner manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjaahhh committed Dec 4, 2018
1 parent 07ff427 commit 30da626
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions quarkchain/tools/external_miner_manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -u; set -e
type jq >/dev/null 2>&1 || { echo >&2 "Please install jq."; exit 1; }

# c -> config, p -> process number, t -> threads per miner process
# eg: external_miner_manager.sh -c ~/Documents/config.json -p 9 -t 1 -h localhost
# eg: external_miner_manager.sh -c ~/Documents/config.json -p 8 -h localhost
while getopts ":c:p:t:h:" opt; do
case ${opt} in
c )
Expand All @@ -14,9 +14,6 @@ while getopts ":c:p:t:h:" opt; do
p )
process=$OPTARG
;;
t )
thread=$OPTARG
;;
h )
host=$OPTARG
;;
Expand All @@ -38,7 +35,6 @@ end_shard=$(( $shard_cnt - 1))
for i in $(seq 0 $end_shard); do
shards+=("$i")
done
shards+=("R") # root chain

shards_by_process=()
i=0
Expand All @@ -52,7 +48,7 @@ for shards_per_process in "${shards_by_process[@]}"; do
pypy3 $miner_py_path \
--host $host \
--config $config \
--worker $thread \
--worker 1 \
--shards $shards_per_process &
done

Expand Down

0 comments on commit 30da626

Please sign in to comment.