diff options
Diffstat (limited to 'kad/src/Network')
-rw-r--r-- | kad/src/Network/Kademlia/Routing.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kad/src/Network/Kademlia/Routing.hs b/kad/src/Network/Kademlia/Routing.hs index c7fdf028..8412e789 100644 --- a/kad/src/Network/Kademlia/Routing.hs +++ b/kad/src/Network/Kademlia/Routing.hs | |||
@@ -798,7 +798,9 @@ data KademliaSpace nid ni = KademliaSpace | |||
798 | , kademliaTestBit :: nid -> Word -> Bool | 798 | , kademliaTestBit :: nid -> Word -> Bool |
799 | -- | The Kademlia xor-metric. | 799 | -- | The Kademlia xor-metric. |
800 | , kademliaXor :: nid -> nid -> nid | 800 | , kademliaXor :: nid -> nid -> nid |
801 | 801 | -- | Generate random node. Given a way to generate a random bytestring | |
802 | -- of some length, the "self" node-id, and a tuple as output by | ||
803 | -- 'bucketRange', it supplies a new random node-id. | ||
802 | , kademliaSample :: forall m. Applicative m => (Int -> m BS.ByteString) -> nid -> (Int,Word8,Word8) -> m nid | 804 | , kademliaSample :: forall m. Applicative m => (Int -> m BS.ByteString) -> nid -> (Int,Word8,Word8) -> m nid |
803 | } | 805 | } |
804 | 806 | ||