Browse Source

cryptonight v7/monero updates

ketnoip
Adam Piontek 1 year ago
parent
commit
493bc9188d
3 changed files with 23 additions and 6 deletions
  1. +1
    -0
      kmm/data/algorithms.json
  2. +11
    -3
      kmm/miners/xmrig-cpu.py
  3. +11
    -3
      kmm/miners/xmrig-nvidia.py

+ 1
- 0
kmm/data/algorithms.json View File

@@ -7,6 +7,7 @@
"c11": "c11",
"cryptonight": "cryptonight",
"cryptonightv7": "cryptonightv7",
"cryptonight-monero": "cryptonight",
"daggerhashimoto": "ethash",
"darkcoinmod": "x11",
"decred": "decred",

+ 11
- 3
kmm/miners/xmrig-cpu.py View File

@@ -21,12 +21,13 @@ miner_info = {
'minertype': 'cpu',
'api': 'xmrig',
'apiport': '2238',
'arguments': ' --api-port={apiport} -a cryptonight -o {host}:{port} -u {user} -p {password} --no-color --safe --max-cpu-usage=75 --donate-level=1',
'arguments': ' --api-port={apiport} -a cryptonight -o {host}:{port} -u {user} -p {password} --no-color -t 8 --cpu-affinity 0x5555 --donate-level=0',
'algorithms': {
"cryptonight": "cryptonight",
"Cryptonight-Monero": "cryptonight",
"cryptonightv7": "cryptonight",
},
'devfee': 0.01
'devfee': 0.00
}
# donate-level must be 1 or greater, up to 100. Can be 0 if you compiled your own version.
# if you change donate-level, change devfee also.
@@ -69,11 +70,18 @@ def get_miner(config, pools):
if ma in config['Algorithms']:
if ma not in config['ExcludeAlgorithms']:
for pool in pools:
# if pools[pool].name is "miningpoolhub":
# continue
if pools[pool].name is "nicehash" and ma is "cryptonight":
continue
if ma in pools[pool].get_algorithms():
miner_info['stattype'] = miner_info['name'] + '_' + ma
miner_info['id'] = miner_info['stattype'] + '_' + pool
miner_args = miner_info['arguments'].replace('{apiport}', miner_info['apiport'])
miner_args = miner_args.replace('{host}', pools[pool].get_host_str(ma))
if pools[pool].name is "miningpoolhub":
miner_args = miner_args.replace('{host}', "us-east.cryptonight-hub.miningpoolhub.com")
else:
miner_args = miner_args.replace('{host}', pools[pool].get_host_str(ma))
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())

+ 11
- 3
kmm/miners/xmrig-nvidia.py View File

@@ -21,12 +21,13 @@ miner_info = {
'minertype': 'nvidia',
'api': 'xmrig',
'apiport': '2237',
'arguments': ' --api-port={apiport} -a cryptonight -o {host}:{port} -u {user} -p {password} --no-color --donate-level=1',
'arguments': ' --api-port={apiport} -a cryptonight -o {host}:{port} -u {user} -p {password} --no-color --donate-level=0',
'algorithms': {
"cryptonight": "cryptonight",
"Cryptonight-Monero": "cryptonight",
"cryptonightv7": "cryptonight",
},
'devfee': 0.01
'devfee': 0.00
}
# donate-level must be 1 or greater, up to 100. Can be 0 if you compiled your own version.
# if you change donate-level, change devfee also.
@@ -67,11 +68,18 @@ def get_miner(config, pools):
if ma in config['Algorithms']:
if ma not in config['ExcludeAlgorithms']:
for pool in pools:
# if pools[pool].name is "miningpoolhub":
# continue
if pools[pool].name is "nicehash" and ma is "cryptonight":
continue
if ma in pools[pool].get_algorithms():
miner_info['stattype'] = miner_info['name'] + '_' + ma
miner_info['id'] = miner_info['stattype'] + '_' + pool
miner_args = miner_info['arguments'].replace('{apiport}', miner_info['apiport'])
miner_args = miner_args.replace('{host}', pools[pool].get_host_str(ma))
if pools[pool].name is "miningpoolhub":
miner_args = miner_args.replace('{host}', "us-east.cryptonight-hub.miningpoolhub.com")
else:
miner_args = miner_args.replace('{host}', pools[pool].get_host_str(ma))
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())

Loading…
Cancel
Save