update miner to support both rpi and other stuff

This commit is contained in:
urban
2023-08-31 23:07:26 +02:00
parent e3eba6879e
commit ec829f5fb4
3 changed files with 9 additions and 3 deletions

BIN
Bin/arm64_cpuminer Normal file

Binary file not shown.

View File

@@ -1,4 +1,5 @@
import sys import sys
import os
known_pools = ["public-pool.io", "solo.ckpool.org", "custom"] known_pools = ["public-pool.io", "solo.ckpool.org", "custom"]
@@ -11,6 +12,11 @@ def get_mining_parameters(pool, address):
# Special case when using custom pool # Special case when using custom pool
return "-a sha256d -o " + pool + " -u " + address return "-a sha256d -o " + pool + " -u " + address
command = "../Bin/cpuminer " + get_mining_parameters(sys.argv[1], sys.argv[2]) # Officially we do not support anything else except raspberry pi.
# But we have a fallback in case people want to test on their machine
miner = "arm64_cpuminer"
if "x86_64" in os.uname()[4].lower():
miner = "x86_cpuminer"
command = "../Bin/" + miner + " " + get_mining_parameters(sys.argv[1], sys.argv[2])
print(command) print(command)
#if sys.argv[1] == "-h" or sys.argv[1] == "--help":