From e7c2f98454a4e52b7e7b62b49f91b59cfc77a91b Mon Sep 17 00:00:00 2001 From: joe Date: Sun, 22 Jan 2017 18:11:58 -0500 Subject: PSQ instead of list for peer set. Also: dhtd "swarms" command. --- src/Network/BitTorrent/DHT/Routing.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Network/BitTorrent/DHT/Routing.hs') diff --git a/src/Network/BitTorrent/DHT/Routing.hs b/src/Network/BitTorrent/DHT/Routing.hs index 38207be5..8a6849a1 100644 --- a/src/Network/BitTorrent/DHT/Routing.hs +++ b/src/Network/BitTorrent/DHT/Routing.hs @@ -460,7 +460,7 @@ compatibleNodeId tbl = genBucketSample prefix br where br = bucketRange (L.length (shape tbl) - 1) True bs = BS.pack $ take nodeIdSize $ tablePrefix tbl ++ repeat 0 - prefix = NodeId bs + prefix = asNodeId bs tablePrefix :: Table ip -> [Word8] tablePrefix = map (packByte . take 8 . (++repeat False)) -- cgit v1.2.3