diff options
author | joe <joe@jerkface.net> | 2017-10-24 01:35:33 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-10-24 01:35:33 -0400 |
commit | c31ed656d55bbdb387d91464e51840e90503223a (patch) | |
tree | 360a0810d8681c2eed836cde13e23b2a9b3d1662 /src/Network/Tox/Onion/Handlers.hs | |
parent | ffe298780ce5945dd7a3a5fa957cf2770ca34b56 (diff) |
Implemented "dhtkey" publish method.
Diffstat (limited to 'src/Network/Tox/Onion/Handlers.hs')
-rw-r--r-- | src/Network/Tox/Onion/Handlers.hs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/Network/Tox/Onion/Handlers.hs b/src/Network/Tox/Onion/Handlers.hs index 0c137bf5..3eec0390 100644 --- a/src/Network/Tox/Onion/Handlers.hs +++ b/src/Network/Tox/Onion/Handlers.hs | |||
@@ -242,14 +242,6 @@ sendOnion getTimeout client req oaddr unwrap = | |||
242 | $ join mb | 242 | $ join mb |
243 | 243 | ||
244 | -- | Lookup the secret counterpart for a given alias key. | 244 | -- | Lookup the secret counterpart for a given alias key. |
245 | selectAlias :: TransportCrypto -> NodeId -> STM AliasSelector | ||
246 | selectAlias crypto pkey = do | ||
247 | ks <- filter (\(sk,pk) -> pk == id2key pkey) | ||
248 | <$> readTVar (userKeys crypto) | ||
249 | maybe (return SearchingAlias) | ||
250 | (return . uncurry AnnouncingAlias) | ||
251 | (listToMaybe ks) | ||
252 | |||
253 | getRendezvous :: (TransactionId -> OnionDestination r -> STM (OnionDestination r, Int)) | 245 | getRendezvous :: (TransactionId -> OnionDestination r -> STM (OnionDestination r, Int)) |
254 | -> TransportCrypto | 246 | -> TransportCrypto |
255 | -> Client r | 247 | -> Client r |