]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - const.py
now we store and retrieve node information from our database...
[quix0rs-apt-p2p.git] / const.py
index 4926f008690d5a3d8e4cb953f67e765e883ed0d5..d81ecbd45f021de20eebd6c2c3faca37240a0f94 100644 (file)
--- a/const.py
+++ b/const.py
@@ -7,12 +7,15 @@ main.installReactor(reactor)
 # magic id to use before we know a peer's id
 NULL_ID =  20 * '\0'
 
-# Kademlia "K" constant
+# Kademlia "K" constant, this should be an even number
 K = 8
 
 # SHA1 is 160 bits long
 HASH_LENGTH = 160
 
+# checkpoint every this many seconds
+CHECKPOINT_INTERVAL = 60 * 15 # fifteen minutes
+
 
 ### SEARCHING/STORING
 # concurrent xmlrpc calls per find node/value request!