WIP: Reducing invalid peers in addr messages #8

Draft
lee.miller wants to merge 2 commits from lee.miller/MiNode:protocol into v0.3
Showing only changes of commit 1380ac0bd2 - Show all commits

View File

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