Browse Source

fixing stratum mode for claymore nicehash & miningpoolhub

ketnoip
Adam Piontek 1 year ago
parent
commit
316993b503
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      kmm/miners/claymore-dual.py

+ 10
- 2
kmm/miners/claymore-dual.py View File

@@ -23,8 +23,8 @@ miner_info = {
'minertype': 'nvidia',
'api': 'claymore',
'apiport': '2224',
'arguments': ' -mport {apiport} -epool {host}:{port} -ewal {user} -esm 3 -epsw {password} -allcoins 1 -allpools 1 -retrydelay -1 -colors 0 -platform 2',
'argumentsdual': ' -mport {apiport} -epool {ehost}:{eport} -ewal {euser} -esm 3 -epsw {epassword} -allcoins 1 -allpools 1 -retrydelay -1 -colors 0 -dpool {dhost}:{dport} -dwal {duser} -dpsw {dpassword} -dcoin {dcoin} -dcri 40 -platform 2',
'arguments': ' -mport {apiport} -epool {host}:{port} -ewal {user} {esm} -epsw {password} -allcoins 1 -allpools 1 -retrydelay -1 -colors 0 -platform 2',
'argumentsdual': ' -mport {apiport} -epool {ehost}:{eport} -ewal {euser} -esm 0 -epsw {epassword} -allcoins 1 -allpools 1 -retrydelay -1 -colors 0 -dpool {dhost}:{dport} -dwal {duser} -dpsw {dpassword} -dcoin {dcoin} -dcri 40 -platform 2',
'algorithms': {
# "ethash": "ethash",
"ethash-decred": "dual",
@@ -90,6 +90,14 @@ def get_miner(config, pools):
miner_args = miner_args.replace('{port}', pools[pool].get_port_str(ma))
miner_args = miner_args.replace('{user}', pools[pool].get_user())
miner_args = miner_args.replace('{password}', pools[pool].get_password())

if pools[pool].name == 'nicehash':
miner_args = miner_args.replace('{esm}', '-esm 3')
elif pools[pool].name == 'miningpoolhub':
miner_args = miner_args.replace('{esm}', '-esm 2')
else:
miner_args = miner_args.replace('{esm}', '')

miner_info['statpath'] = os.path.join(config['ScriptHome'], 'stats', miner_info['stattype'] + '.json')
miners[miner_info['id']] = kmm.miner.Miner(
id = miner_info['id'],

Loading…
Cancel
Save