autoconfigure mining threads
This commit is contained in:
parent
ce5a3a0c92
commit
884abb8951
@ -14,8 +14,6 @@
|
||||
* STEEMD\_MINER\_NAME
|
||||
* STEEMD\_PRIVATE\_KEY
|
||||
* Bitcoin Wallet Import Format (WIF)
|
||||
* STEEMD\_MINING\_THREADS
|
||||
* default 8
|
||||
* STEEMD\_EXTRA\_OPTS
|
||||
* passed in to steemd on command line
|
||||
|
||||
|
@ -39,7 +39,7 @@ fi
|
||||
|
||||
if [[ ! -z "$STEEMD_MINER_NAME" ]]; then
|
||||
ARGS+=" --miner=[\"$STEEMD_MINER_NAME\",\"$STEEMD_PRIVATE_KEY\"]"
|
||||
ARGS+=" --mining-threads=${STEEMD_MINING_THREADS:-8}"
|
||||
ARGS+=" --mining-threads=$(nproc)"
|
||||
fi
|
||||
|
||||
if [[ ! -z "$STEEMD_PRIVATE_KEY" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user