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