Rev936, Fix Bootstrapper test without tormanager, Bootstrapper return latest announced peers, Only create 3 threads for passive peers

This commit is contained in:
HelloZeroNet 2016-03-04 19:59:59 +01:00
parent 6cbb6adcfc
commit 08005499fb
6 changed files with 25 additions and 4 deletions

View file

@ -140,6 +140,7 @@ class BootstrapperDb(Db):
FROM peer_to_hash
LEFT JOIN peer USING (peer_id)
WHERE %s
ORDER BY date_announced DESC
LIMIT :limit
""" % where
res = self.execute(query, {"hashid": hashid, "ip4": ip4, "onions": onions, "port": port, "limit": limit})