class_singleWorker quality fixes
This commit is contained in:
parent
80b2bc1c9a
commit
9923e97279
|
@ -1,6 +1,5 @@
|
||||||
"""
|
"""
|
||||||
src/class_singleWorker.py
|
Thread for performing PoW
|
||||||
=========================
|
|
||||||
"""
|
"""
|
||||||
# pylint: disable=protected-access,too-many-branches,too-many-statements,no-self-use,too-many-lines,too-many-locals
|
# pylint: disable=protected-access,too-many-branches,too-many-statements,no-self-use,too-many-lines,too-many-locals
|
||||||
|
|
||||||
|
@ -468,8 +467,8 @@ class singleWorker(StoppableThread):
|
||||||
def sendOnionPeerObj(self, peer=None):
|
def sendOnionPeerObj(self, peer=None):
|
||||||
"""Send onionpeer object representing peer"""
|
"""Send onionpeer object representing peer"""
|
||||||
if not peer: # find own onionhostname
|
if not peer: # find own onionhostname
|
||||||
for peer in state.ownAddresses:
|
for peer_ in state.ownAddresses:
|
||||||
if peer.host.endswith('.onion'):
|
if peer_.host.endswith('.onion'):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user