Verified Commit 61c7e3db authored by Silvio Rhatto's avatar Silvio Rhatto
Browse files

Feat(test-keys): adds wait parameter

parent 73af36df
......@@ -25,9 +25,9 @@ source $DIRNAME/params
# Additional parameters
CANDIDATE="$2"
NOUNCE="$(echo $RANDOM | sha512sum | awk '{ print $1 }')"
PORT="${3:-8080}"
WAIT="60"
WAIT="${4:-60}"
NOUNCE="$(echo $RANDOM | sha512sum | awk '{ print $1 }')"
# Teardown procedure
function teardown() {
......@@ -45,13 +45,14 @@ function teardown() {
}
function usage() {
echo "usage: $BASENAME <pool> <candidate> <port>"
echo "usage: $BASENAME <pool> <candidate> <port> <wait>"
echo ""
echo "Test an Onion Service keypair candidate mined in a pool"
echo ""
echo " pool: the mining pool to operate on"
echo " candidate: which candidate in the pool to test"
echo " port: TCP port to bind the test web server, defaults to $PORT"
echo " wait: how many seconds to wait for service bootstrap and checking, defaults to $WAIT"
}
# Check for a config
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment