Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Silvio Rhatto
Onionmine
Commits
61c7e3db
Verified
Commit
61c7e3db
authored
May 13, 2022
by
Silvio Rhatto
Browse files
Feat(test-keys): adds wait parameter
parent
73af36df
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/test-keys
View file @
61c7e3db
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment