]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - const.py
fixed borked tab/space problems, damn ProjectBuilder doesn't come with reasonable...
[quix0rs-apt-p2p.git] / const.py
index f5feed44943b42b73dc3da668cf28d8d7048a6fe..4926f008690d5a3d8e4cb953f67e765e883ed0d5 100644 (file)
--- a/const.py
+++ b/const.py
@@ -7,6 +7,12 @@ main.installReactor(reactor)
 # magic id to use before we know a peer's id
 NULL_ID =  20 * '\0'
 
+# Kademlia "K" constant
+K = 8
+
+# SHA1 is 160 bits long
+HASH_LENGTH = 160
+
 
 ### SEARCHING/STORING
 # concurrent xmlrpc calls per find node/value request!