use hexlify() to display hash ID
This commit is contained in:
parent
05b1294eca
commit
6bb138e483
|
@ -7,6 +7,7 @@ from random import choice, expovariate, sample
|
||||||
from threading import RLock
|
from threading import RLock
|
||||||
from time import time
|
from time import time
|
||||||
import six
|
import six
|
||||||
|
from binascii import hexlify
|
||||||
|
|
||||||
import network.connectionpool # use long name to address recursive import
|
import network.connectionpool # use long name to address recursive import
|
||||||
import state
|
import state
|
||||||
|
@ -76,7 +77,7 @@ class Dandelion: # pylint: disable=old-style-class
|
||||||
if logger.isEnabledFor(logging.DEBUG):
|
if logger.isEnabledFor(logging.DEBUG):
|
||||||
logger.debug(
|
logger.debug(
|
||||||
'%s entering fluff mode due to %s.',
|
'%s entering fluff mode due to %s.',
|
||||||
''.join('%02x' % six.byte2int(i) for i in hashId), reason)
|
hexlify(hashId), reason)
|
||||||
with self.lock:
|
with self.lock:
|
||||||
try:
|
try:
|
||||||
del self.hashMap[bytes(hashId)]
|
del self.hashMap[bytes(hashId)]
|
||||||
|
|
Reference in New Issue
Block a user