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 efeabcb4cf
commit d02cde25a7
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -198,7 +198,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