Lower timestamps in the addr message by a half of PyBitmessage ADDRESS_ALIVE

This commit is contained in:
Lee Miller 2024-07-02 20:21:16 +03:00
parent 70f059d9b1
commit 1380ac0bd2
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -213,7 +213,7 @@ class NetAddr():
def to_bytes(self):
b = b''
b += struct.pack('>Q', int(time.time()))
b += struct.pack('>Q', int(time.time() - 5400))
b += struct.pack('>I', self.stream)
b += NetAddrNoPrefix(self.services, self.host, self.port).to_bytes()
return b