Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions guiminer.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,20 @@ def toggle_mining(self, event):

#############################
# Begin backend specific code
def configure_subprocess_cgminer(self):
"""Set up the command line for cgminer

The hostname must start with http:// for these miners.
"""
cmd = "%s -T -O %s:%s -o %s:%s %s" % (
self.external_path,
self.txt_username.GetValue(),
self.txt_pass.GetValue(),
self.host_with_http_prefix,
self.txt_port.GetValue(),
self.txt_flags.GetValue())
return cmd, os.path.dirname(self.external_path)

def configure_subprocess_poclbm(self):
"""Set up the command line for poclbm."""
folder = get_module_path()
Expand Down Expand Up @@ -930,6 +944,8 @@ def start_mining(self):
listener_cls = MinerListenerThread
if not self.is_external_miner:
conf_func = self.configure_subprocess_poclbm
elif "cgminer" in self.external_path:
conf_func = self.configure_subprocess_cgminer
elif "rpcminer" in self.external_path:
conf_func = self.configure_subprocess_rpcminer
elif "bitcoin-miner" in self.external_path:
Expand Down