Commit Graph

127 Commits (0668798b72795d277f2ba6cf84a5bf4629543daa)

Author SHA1 Message Date
Maxim Shishmarev b786df8045 Remove limit on requested nodes 5 years ago
Maxim Shishmarev 3a746109ea Path building for onion requests 5 years ago
Ryan Tharp 7a0e972ca4 refactor getRandomPoolLength out of markRandomNodeUnreachable 5 years ago
Ryan Tharp 4bb2e83cb3 lint 5 years ago
Ryan Tharp 99679741c1 some renames, improve refresh random pool failures better 5 years ago
Ryan Tharp 241e64b94b lint 5 years ago
Ryan Tharp e3545fa338 change unreachableNode 2nd param to object, put lock around getRandomSnodeAddress so they can't stack, markRandomNodeUnreachable returns remaining count, adjust logging 5 years ago
Mikunj a09e370e1d Added testing on pull request
Disable proxy in tests.
5 years ago
Ryan Tharp 4a55040688 improve code quality 5 years ago
Ryan Tharp 69dcfa2845 getSwarmNodes refactor to include results from RANDOM_SNODES_TO_USE nodes, make refreshSwarmNodesForPubKey return filteredNodes, initialiseRandomPool() retries 3 times with delays 5 years ago
Ryan Tharp 0223f40de2 lint 5 years ago
Ryan Tharp 4a65a5aa12 handle JSON parsing error 5 years ago
Ryan Tharp 3bba0571a0 markRandomNodeUnreachable() refactor, notes/logging 5 years ago
Ryan Tharp 739ac4ce4e include useful info on error 5 years ago
Maxim Shishmarev 3f58dea035 Remove mixpanel 5 years ago
Maxim Shishmarev 02320334f0 Remove P2P 5 years ago
Ryan Tharp f2233c20c7 add missing semicolon 5 years ago
Ryan Tharp e51a030dc9 include log 5 years ago
Ryan Tharp 6ab16d7e56 fix case so function exists, give a warning when initialiseRandomPool or getSwarmNodes fail 5 years ago
Ryan Tharp 1a785a2435 fix getSwarmNodes exception handler, lint 5 years ago
Maxim Shishmarev a195c98061 Add a feature flag for snode proxy 5 years ago
Ryan Tharp 51eaa90823 use window.mixpanel, remove eventEmitter 6 years ago
Ryan Tharp 88b44390bf Desktop Analytics 6 years ago
sachaaaaa 3beb6004db Fix last hash all being NULL in database 6 years ago
Beaudan Brown 9beea2cbd3 Enforce curlies completely and lint with new settings 6 years ago
Beaudan Brown 27976a053c Save the last retrieved message for public chats on the conversation 6 years ago
Beaudan 1c9fe5b9f5 Make sure we are purging nodes from retrieve swarm list, and also filter 0.0.0.0 ips when getting snodes from wrong swarm error 6 years ago
Beaudan df2c4af67c Run lint and check for ip or address when removing unreachable nodes 6 years ago
Beaudan 68c1932b7b Little better arguments 6 years ago
Beaudan 65a09d12b6 Make sure we try a different seed node every time 6 years ago
Beaudan 10e61c37da Retry initialiseRandomPool some times if request fails, fix uncaught promise in sendMessage 6 years ago
Beaudan 87c5d0858c Choose a random seed node from a list for bootstrapping 6 years ago
sachaaaaa c53633e367 Clearnet p2p with https (no verification yet) 6 years ago
Beaudan eb1fa97c9c Make use of ip consistent for random snode pool and swarm list 6 years ago
Beaudan ee260f7de0 Fix silly filtering bug, add filtering for swarm nodes and lint 6 years ago
Beaudan Campbell-Brown 436af1a990
Merge pull request #313 from BeaudanBrown/random-list
Random list
6 years ago
Beaudan c5c01b0ac8 Purge retrieving snodes 6 years ago
Beaudan d82b5e1998 Remove random snodes if they fail and then try again. Throw seed node error if getRandomSnodeAddress fails. Filter out 0.0.0.0 nodes. 6 years ago
Beaudan 923d7ffe27 Change to get_n_service_nodes method 6 years ago
Beaudan d12f6b6d32 Handle swarm nodes the same for us or contacts, attach our key to message api object 6 years ago
Beaudan 0948a344d2 Review refactor 6 years ago
Beaudan d5546b9473 Lint 6 years ago
Beaudan 1f74088586 Send to IP 6 years ago
Beaudan 6b2b9ce926 Remove default port and use port from storage server responses 6 years ago
Beaudan eea2b8e6a7 Do port null check inside rpc call 6 years ago
sachaaaaa 9d6c5bff36 make unverified https queries to the snodes 6 years ago
Beaudan c02d5d4053 Lint 6 years ago
Beaudan b43978ece1 Initial refactoring of sendmessage 6 years ago
Beaudan 620380d2d9 Move filter messages to message api and some other cleaning 6 years ago
Beaudan fa7042c043 Added wrong swarm error which gets thrown if we receive a 421 error, update the swarm lists if we get one of those errors 6 years ago
Beaudan 0f771d4db4 Rename loki_fetch to loki_rpc 6 years ago
Beaudan 531ee92dcb Updated messenger to work with slightly different storage server API and changed swarm requests to go through storage server 6 years ago
Beaudan 0b6849c96a Review comment plus added a todo 6 years ago
Beaudan 6656a89092 Cleaned up a lot of the logs, stop them from printing more than once etc 6 years ago
Beaudan 8c20a31dd4 Review suggestions 6 years ago
Beaudan 72d00e0922 Manually set the dns servers for windows 6 years ago
Beaudan 25ded46e2c Fixed some bugs removing nodes after the first failure instead of waiting for the failure count and also reduced the number of errors logged and made some warnings 6 years ago
Beaudan 2fd746821a Added function for getting your loki IP and bind the local server 6 years ago
Beaudan 6426a5eb9b Added ability to look up our .loki address and now send that with our LokiAddress messages 6 years ago
Beaudan 2d9e6a7ac8 Review comments 6 years ago
Beaudan 2311bd1328 Fix bug with swarm node reference, now we should only refresh swarm nodes when they fail 6 years ago
Beaudan 5d823de6f9 Renamed lokiSnodeAPI to start with lower case for consistency, refactor snode API to use conversation controller 6 years ago
Beaudan b2f456031f Forgot to lint 6 years ago
Beaudan 25383458b1 Fixed bug with our swarm nodes being removed from memory after a successful request because of returning a reference 6 years ago
sachaaaaa 576617e18e call class method using "this" in loki_snode_api 6 years ago
Mikunj 3c07d99a89 Fix variable names.
Fix module export to be more consistent.
6 years ago
Beaudan 6ba7fb20b8 Fixed UI blocking when creating conversation, more review comments 6 years ago
Beaudan e735b3ca41 Review comments, moved swarmNodes database stuff to just be in data.js 6 years ago
Beaudan 38ff70e2ec Fixed some little redundant stuff in the message and snode api 6 years ago
Beaudan f6d167eda1 Split logic for getting swarm nodes from db, getting from lokinet and saving to db. Now tracking successfulRequests when making queries on top of the completedNodes list 6 years ago
Beaudan dde63a552f Fix bug with replayable errors, fix bug with set representation of swarmNodes not being handled properly 6 years ago
Beaudan c83661ce3f Added DNS resolution error for when lokinet isn't working, now keeping track of the nodes that have been queried and not trying them again 6 years ago
Beaudan 561d60cfd5 Sending messages now in a while loop like retrieving messages, added a failureCount and only delete node urls if they fail 3 times 6 years ago
Mikunj e08a63d078 Merge development into lint 6 years ago
Beaudan badaf40ca8 bit of readability and catching error (but just silencing for now) 6 years ago
Beaudan bdbdf15469 Added timeouts for requests so they don't for ages. Changed swarmNodes to be a set to work property with merge, now removing contact swarmNodes if they timeout 6 years ago
Beaudan 7b1799c418 Big ol' hunk o' chunk. Now using random.snode to populate swarm lists, now making multiple requests from said lists and they are processed as they complete rather than waiting for all to resolve 6 years ago