Log also nonce when processing the version message

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

View File

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