projects
/
quix0rs-apt-p2p.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add some default bogus values in __init__
[quix0rs-apt-p2p.git]
/
node.py
diff --git
a/node.py
b/node.py
index 4d7a977a8ed79947ca1a9d48ea00e184688ec52e..1e1c0bd1f9ea19759b67f920703a6fb06cc27ef1 100644
(file)
--- 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)