fix error messages
This commit is contained in:
parent
8fc232a820
commit
558cf7a17f
@ -118,13 +118,13 @@ class MiningService(GenericService):
|
|||||||
# Check if worker is authorized to submit shares
|
# Check if worker is authorized to submit shares
|
||||||
ip = self.connection_ref()._get_ip()
|
ip = self.connection_ref()._get_ip()
|
||||||
if not Interfaces.worker_manager.authorize(worker_name, session['authorized'].get(worker_name)):
|
if not Interfaces.worker_manager.authorize(worker_name, session['authorized'].get(worker_name)):
|
||||||
raise SubmitException("Worker is not authorized: IP %s", str(ip))
|
raise SubmitException("Worker is not authorized: IP "+str(ip))
|
||||||
|
|
||||||
# Check if extranonce1 is in connection session
|
# Check if extranonce1 is in connection session
|
||||||
extranonce1_bin = session.get('extranonce1', None)
|
extranonce1_bin = session.get('extranonce1', None)
|
||||||
|
|
||||||
if not extranonce1_bin:
|
if not extranonce1_bin:
|
||||||
raise SubmitException("Connection is not subscribed for mining: %s", str(ip))
|
raise SubmitException("Connection is not subscribed for mining: %s"+str(ip))
|
||||||
|
|
||||||
# Get current block job_id
|
# Get current block job_id
|
||||||
difficulty = session['difficulty']
|
difficulty = session['difficulty']
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user