From 6bb138e48324ec8319d7367842c88e5dec43be12 Mon Sep 17 00:00:00 2001 From: Kashiko Koibumi Date: Fri, 31 May 2024 02:31:41 +0900 Subject: [PATCH] use hexlify() to display hash ID --- src/network/dandelion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network/dandelion.py b/src/network/dandelion.py index d78cab39..e343d5f2 100644 --- a/src/network/dandelion.py +++ b/src/network/dandelion.py @@ -7,6 +7,7 @@ from random import choice, expovariate, sample from threading import RLock from time import time import six +from binascii import hexlify import network.connectionpool # use long name to address recursive import import state @@ -76,7 +77,7 @@ class Dandelion: # pylint: disable=old-style-class if logger.isEnabledFor(logging.DEBUG): logger.debug( '%s entering fluff mode due to %s.', - ''.join('%02x' % six.byte2int(i) for i in hashId), reason) + hexlify(hashId), reason) with self.lock: try: del self.hashMap[bytes(hashId)]