mirror of
https://github.com/aljazceru/shurikenpi.io.git
synced 2025-12-17 22:24:23 +01:00
update installer
This commit is contained in:
15
Tools/create_worker.py
Normal file
15
Tools/create_worker.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import sys
|
||||
|
||||
known_pools = ["public-pool.io", "solo.ckpool.org", "custom"]
|
||||
|
||||
def get_mining_parameters(pool, address):
|
||||
if pool == "public-pool.io":
|
||||
return "-a sha256d -o stratum+tcp://public-pool.io:21496 -u " + address
|
||||
if pool == "solo.ckpool.org":
|
||||
return "-a sha256d -o stratum+tcp://solo.ckpool.org:3333 -u " + address
|
||||
|
||||
# Special case when using custom pool
|
||||
return "-a sha256d -o " + pool + " -u " + address
|
||||
|
||||
print (get_mining_parameters(sys.argv[1], sys.argv[2]))
|
||||
#if sys.argv[1] == "-h" or sys.argv[1] == "--help":
|
||||
Reference in New Issue
Block a user