Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
Stub of mining.get_transactions return [], prevents bfgminer crash
Browse files Browse the repository at this point in the history
  • Loading branch information
admin-slush committed Jan 28, 2014
1 parent ced22ef commit 0b93328
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mining_libs/stratum_listener.py
Expand Up @@ -197,3 +197,7 @@ def submit(self, worker_name, job_id, extranonce2, ntime, nonce, *args):
response_time = (time.time() - start) * 1000
log.info("[%dms] Share from '%s' accepted, diff %d" % (response_time, worker_name, DifficultySubscription.difficulty))
defer.returnValue(result)

def get_transactions(self, *args):
log.warn("mining.get_transactions isn't supported by proxy")
return []

0 comments on commit 0b93328

Please sign in to comment.