X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=node.py;h=1e1c0bd1f9ea19759b67f920703a6fb06cc27ef1;hb=7d427317cab577b54ab377100fdce5dc7d5366dc;hp=4d7a977a8ed79947ca1a9d48ea00e184688ec52e;hpb=6533b37c36b8437d4d1fc43714c0cdbc1767eca7;p=quix0rs-apt-p2p.git diff --git a/node.py b/node.py index 4d7a977..1e1c0bd 100644 --- a/node.py +++ b/node.py @@ -8,8 +8,9 @@ class Node: def __init__(self): self.fails = 0 - self.lastSeen = time.time() - + self.lastSeen = 0 + self.id = self.host = self.port = '' + def init(self, id, host, port): self.id = id self.int = hash.intify(id)