Skip to content

Commit

Permalink
fix previous merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brightskye committed Nov 8, 2018
1 parent f7f48e8 commit d255d27
Show file tree
Hide file tree
Showing 11 changed files with 568 additions and 395 deletions.
21 changes: 0 additions & 21 deletions 0algo_id

This file was deleted.

17 changes: 11 additions & 6 deletions 0miner
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

nvOC_0miner_dev="0028"
source "${NVOC}/1bash"
source "${NVOC}/0algo_id"
source "${NVOC}/helpers/coin_algo_mapping"
source "${NVOC}/helpers/disabled_gpu.sh"

nvOC_0miner_ver="$nvOC_Ver.$nvOC_0miner_dev" # Do not edit this
Expand All @@ -89,25 +89,31 @@ fi
## Unify COIN Start
UPOOL="_POOL"
UPORT="_PORT"
UPROTO="_POOL_PROTOCOL"
UADDR="_ADDRESS"
UWORK="_WORKER"
UEXT="_EXTENSION_ARGUMENTS"
UINTENSITY="_INTENSITY"
UWALLET="_WALLET_FORMAT"
UMINER="_MINER"
UVERSION="_VERSION"
UCUDA="_CUDA"

xpool=$COIN$UPOOL
xport=$COIN$UPORT
xproto=$COIN$UPROTO
xaddr=$COIN$UADDR
xwork=$COIN$UWORK
xext=$COIN$UEXT
xintensity=$ALGO$UINTENSITY
xwallet=$ALGO$UWALLET
xminer=$ALGO$UMINER
xversion=${!xminer}$UVERSION
xcuda=$ALGO$UCUDA
miner_opts="$(dgh_get_miner_opts "${!xminer}" "$COIN" "$ALGO")"

mpath="${NVOC}/miners/${!xminer}"

# List of cuda-8.0 miners
CUDA_8_MINERS="ANXccminer ASccminer KXccminer MSFTccminer NAccminer SILENTminer SPccminer SUPRminer VERTMINER"
LAUNCH="screen -c ${NVOC}/screenrc-miner -dmSL miner"
Expand Down Expand Up @@ -177,7 +183,7 @@ fi
if [[ $COIN == BMINER_DUAL ]]
then
HCD=${NVOC}/miners/BMINER/$BMINER_VERSION/bminer
screen -c "${NVOC}"/screenrc-miner -dmSL miner "$HCD" -uri $MAIN_COIN_POOL_PROTOCOL://$MAIN_COIN_ADDRESS.$MAIN_COIN_WORKER:$MINER_PWD@$MAIN_COIN_POOL:$MAIN_COIN_PORT -uri2 $DUAL_COIN_POOL_PROTOCOL://$DUAL_COIN_ADDRESS.$DUAL_COIN_WORKER:$MINER_PWD@$DUAL_COIN_POOL:$DUAL_COIN_PORT $BMINER_OPTS
screen -c "${NVOC}"/screenrc-miner -dmSL miner "$HCD" -uri $MAIN_COIN_POOL_PROTOCOL://$MAIN_COIN_ADDRESS.$MAIN_COIN_WORKER:$MINER_PWD@$MAIN_COIN_POOL:$MAIN_COIN_PORT -uri2 $DUAL_COIN_POOL_PROTOCOL://$DUAL_COIN_ADDRESS.$DUAL_COIN_WORKER:$MINER_PWD@$DUAL_COIN_POOL:$DUAL_COIN_PORT $miner_opts
fi


Expand All @@ -193,9 +199,8 @@ then


## ETHASH
if [[ $ALGO == ETHASH ]]
elif [[ $ALGO == ETHASH ]]
then
## Declare Miner Start
if [[ $ETHASH_MINER == GENOIL ]]
then
# skipping GENOIL's setting, since i'm not sure what's it's device options prefix ,etc
Expand All @@ -216,7 +221,7 @@ then
elif [[ $ETHASH_MINER == PhoenixMiner ]]
then
miner_opts="$(dgh_enabled_devices '-gpus ' ',' 'N' "$miner_opts")"
HCD="${NVOC}/miners/PhoenixMiner/"${!xversion}"/PhoenixMiner -pool ${!xproto}://${!xpool}:${!xport} -wal ${!xaddr} -worker ${!xwork} -pass $MINER_PWD ${!xext} $PhoenixMiner_OPTS"
HCD="${NVOC}/miners/PhoenixMiner/"${!xversion}"/PhoenixMiner -pool ${!xproto}://${!xpool}:${!xport} -wal ${!xaddr} -worker ${!xwork} -pass $MINER_PWD ${!xext} $miner_opts"
fi
eval $LAUNCH $HCD

Expand Down Expand Up @@ -279,7 +284,7 @@ then
else
UCCALGO="-a ${ALGO,,}"
HCD="${NVOC}"/miners/"${!xminer}"/"${!xversion}"/ccminer
eval $LAUNCH $HCD $UCCALGO -o ${!xproto}://"${!xpool}":"${!xport}" -u "${!xaddr}""${!xwallet}""${!xwork}" -p "$MINER_PWD" -i "${!xintensity}" $CCMINER_OPTS ${!xext}
eval $LAUNCH $HCD $UCCALGO -o ${!xproto}://"${!xpool}":"${!xport}" -u "${!xaddr}""${!xwallet}""${!xwork}" -p "$MINER_PWD" -i "${!xintensity}" $miner_opts ${!xext}
fi


Expand Down
Loading

0 comments on commit d255d27

Please sign in to comment.