mirror of
https://github.com/aljazceru/shurikenpi.io.git
synced 2025-12-17 06:04:23 +01:00
update miner to support both rpi and other stuff
This commit is contained in:
BIN
Bin/arm64_cpuminer
Normal file
BIN
Bin/arm64_cpuminer
Normal file
Binary file not shown.
@@ -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])
|
||||
# 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)
|
||||
#if sys.argv[1] == "-h" or sys.argv[1] == "--help":
|
||||
Reference in New Issue
Block a user