diff --git a/Bin/arm64_cpuminer b/Bin/arm64_cpuminer new file mode 100644 index 0000000..68e535c Binary files /dev/null and b/Bin/arm64_cpuminer differ diff --git a/Bin/cpuminer b/Bin/x86_cpuminer similarity index 100% rename from Bin/cpuminer rename to Bin/x86_cpuminer diff --git a/Tools/create_worker.py b/Tools/create_worker.py index 2820289..8630956 100644 --- a/Tools/create_worker.py +++ b/Tools/create_worker.py @@ -1,4 +1,5 @@ import sys +import os 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 return "-a sha256d -o " + pool + " -u " + address -command = "../Bin/cpuminer " + get_mining_parameters(sys.argv[1], sys.argv[2]) -print (command) -#if sys.argv[1] == "-h" or sys.argv[1] == "--help": \ No newline at end of file +# 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) \ No newline at end of file