]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_dht_Khashmir/node.py
Modify khashmir's config system to not use the const module.
[quix0rs-apt-p2p.git] / apt_dht_Khashmir / node.py
index 35dadc6eebc52ecff3d11a03616557f33ca4be17..fda6fbed6508179ef51753136e04aaddebb2197f 100644 (file)
@@ -6,6 +6,9 @@ from types import InstanceType
 
 import khash
 
+# magic id to use before we know a peer's id
+NULL_ID = 20 * '\0',
+
 class Node:
     """encapsulate contact info"""
     def __init__(self):