Log also nonce when processing the version message

This commit is contained in:
Lee Miller 2024-01-24 00:03:39 +02:00
parent 5c749311b6
commit 2645f9c162
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -391,8 +391,9 @@ class ConnectionBase(threading.Thread):
else: else:
shared.nonce_pool[self.host] = version.nonce shared.nonce_pool[self.host] = version.nonce
logging.info( logging.info(
'%s:%s claims to be %s', '%s:%s claims to be %s (%s)',
self.host_print, self.port, version.user_agent) self.host_print, self.port, version.user_agent,
base64.b16encode(version.nonce))
self.send_queue.put(message.Message(b'verack', b'')) self.send_queue.put(message.Message(b'verack', b''))
self.verack_sent = True self.verack_sent = True
self.remote_version = version self.remote_version = version