From b66dfcaebbaaf8d3dd9d0d3e84fc73d29026e27f Mon Sep 17 00:00:00 2001
From: Lee Miller <lee.miller@tutanota.com>
Date: Wed, 4 Jan 2023 02:36:04 +0200
Subject: [PATCH] Cast time as int before assembling addr message

---
 src/network/announcethread.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/network/announcethread.py b/src/network/announcethread.py
index 5fcf0dfa..84807757 100644
--- a/src/network/announcethread.py
+++ b/src/network/announcethread.py
@@ -39,7 +39,6 @@ class AnnounceThread(StoppableThread):
                     stream,
                     Peer(
                         '127.0.0.1',
-                        config.safeGetInt(
-                            'bitmessagesettings', 'port')),
-                    time.time())
+                        config.safeGetInt('bitmessagesettings', 'port')),
+                    int(time.time()))
                 connection.append_write_buf(assembleAddrMessage([addr]))