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
The Tor Project
Onion Services
Onionmine
Commits
819d89f7
Verified
Commit
819d89f7
authored
May 06, 2022
by
Silvio Rhatto
Browse files
Feat(batch): simple batch processing
parent
03023dae
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/mine-batch
View file @
819d89f7
...
...
@@ -23,7 +23,21 @@ BASENAME="`basename $0`"
DIRNAME
=
"
`
dirname
$0
`
"
source
$DIRNAME
/params
# FIXME
# Batch locally or in remote servers?
# Check if there are any limits for each pool?
# Iterate over all pools and start the mining process
# Check if there are any mining limits
if
!
echo
$MKP224O_RUN_FLAGS
|
grep
-q
--
"-n [0-9]"
;
then
# Display warning
echo
"WARNING: cannot find -n flag at MKP224O_RUN_FLAGS"
echo
"Please make sure that you have mining limits for your pools, otherwise this script won't stop by itself."
fi
# Iterate over all pools
for
pool
in
`
ls
$POOLS
`
;
do
# Skip the example pool
if
[
"
$pool
"
==
"example.org"
]
;
then
continue
fi
# Start mining
echo
">batch: processing pool:
$pool
"
make
-C
$BASEDIR
mine
pool
=
$pool
done
Silvio Rhatto
@rhatto
mentioned in issue
#7 (closed)
·
May 16, 2022
mentioned in issue
#7 (closed)
mentioned in issue #7
Toggle commit list
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