Lower timestamps in the addr message by a half of PyBitmessage ADDRESS_ALIVE
This commit is contained in:
parent
efeabcb4cf
commit
d02cde25a7
|
@ -198,7 +198,7 @@ class NetAddr():
|
||||||
|
|
||||||
def to_bytes(self):
|
def to_bytes(self):
|
||||||
b = b''
|
b = b''
|
||||||
b += struct.pack('>Q', int(time.time()))
|
b += struct.pack('>Q', int(time.time() - 5400))
|
||||||
b += struct.pack('>I', self.stream)
|
b += struct.pack('>I', self.stream)
|
||||||
b += NetAddrNoPrefix(self.services, self.host, self.port).to_bytes()
|
b += NetAddrNoPrefix(self.services, self.host, self.port).to_bytes()
|
||||||
return b
|
return b
|
||||||
|
|
Loading…
Reference in New Issue
Block a user