update installer

This commit is contained in:
urban
2023-08-29 23:27:01 +02:00
parent 78740fc08e
commit a0527cb1d1
6 changed files with 48 additions and 13 deletions

15
Tools/create_worker.py Normal file
View 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":