Commit graph

75 commits

Author SHA1 Message Date
Ryan Tharp
7a0e972ca4 refactor getRandomPoolLength out of markRandomNodeUnreachable 2020-03-19 21:19:20 -07:00
Ryan Tharp
4bb2e83cb3 lint 2020-03-19 15:04:36 -07:00
Ryan Tharp
99679741c1 some renames, improve refresh random pool failures better 2020-03-19 14:23:23 -07:00
Ryan Tharp
241e64b94b lint 2020-03-18 17:17:46 -07:00
Ryan Tharp
e3545fa338 change unreachableNode 2nd param to object, put lock around getRandomSnodeAddress so they can't stack, markRandomNodeUnreachable returns remaining count, adjust logging 2020-03-18 17:14:55 -07:00
Mikunj
a09e370e1d Added testing on pull request
Disable proxy in tests.
2020-02-28 14:51:09 +11:00
Ryan Tharp
4a55040688 improve code quality 2020-02-17 15:09:44 -08:00
Ryan Tharp
69dcfa2845 getSwarmNodes refactor to include results from RANDOM_SNODES_TO_USE nodes, make refreshSwarmNodesForPubKey return filteredNodes, initialiseRandomPool() retries 3 times with delays 2020-02-16 21:50:43 -08:00
Ryan Tharp
0223f40de2 lint 2020-02-09 19:55:58 -08:00
Ryan Tharp
4a65a5aa12 handle JSON parsing error 2020-02-09 19:46:38 -08:00
Ryan Tharp
3bba0571a0 markRandomNodeUnreachable() refactor, notes/logging 2020-02-05 01:07:57 -08:00
Ryan Tharp
739ac4ce4e include useful info on error 2020-02-04 14:33:47 -08:00
Maxim Shishmarev
3f58dea035 Remove mixpanel 2020-01-31 10:14:30 +11:00
Maxim Shishmarev
02320334f0 Remove P2P 2020-01-30 11:47:37 +11:00
Ryan Tharp
f2233c20c7 add missing semicolon 2020-01-28 00:47:02 -08:00
Ryan Tharp
e51a030dc9 include log 2020-01-22 23:52:31 -08:00
Ryan Tharp
6ab16d7e56 fix case so function exists, give a warning when initialiseRandomPool or getSwarmNodes fail 2020-01-21 00:22:30 -08:00
Ryan Tharp
1a785a2435 fix getSwarmNodes exception handler, lint 2020-01-20 21:19:36 -08:00
Maxim Shishmarev
a195c98061 Add a feature flag for snode proxy 2019-12-19 11:46:44 +11:00
Ryan Tharp
51eaa90823 use window.mixpanel, remove eventEmitter 2019-09-19 19:57:26 -07:00
Ryan Tharp
88b44390bf Desktop Analytics 2019-09-17 01:14:29 -07:00
sachaaaaa
3beb6004db Fix last hash all being NULL in database 2019-09-10 14:35:16 +10:00
Beaudan Brown
9beea2cbd3 Enforce curlies completely and lint with new settings 2019-09-05 11:48:10 +10:00
Beaudan Brown
27976a053c Save the last retrieved message for public chats on the conversation 2019-09-02 12:55:20 +10:00
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 2019-07-09 10:45:50 +10:00
Beaudan
df2c4af67c Run lint and check for ip or address when removing unreachable nodes 2019-07-04 10:20:16 +10:00
Beaudan
68c1932b7b Little better arguments 2019-07-03 12:39:21 +10:00
Beaudan
65a09d12b6 Make sure we try a different seed node every time 2019-07-03 12:37:56 +10:00
Beaudan
10e61c37da Retry initialiseRandomPool some times if request fails, fix uncaught promise in sendMessage 2019-07-03 11:55:40 +10:00
Beaudan
87c5d0858c Choose a random seed node from a list for bootstrapping 2019-07-03 11:32:31 +10:00
sachaaaaa
c53633e367 Clearnet p2p with https (no verification yet) 2019-06-28 12:09:46 +10:00
Beaudan
eb1fa97c9c Make use of ip consistent for random snode pool and swarm list 2019-06-28 11:13:50 +10:00
Beaudan
ee260f7de0 Fix silly filtering bug, add filtering for swarm nodes and lint 2019-06-28 10:46:41 +10:00
Beaudan Campbell-Brown
436af1a990
Merge pull request #313 from BeaudanBrown/random-list
Random list
2019-06-21 12:18:29 +10:00
Beaudan
c5c01b0ac8 Purge retrieving snodes 2019-06-19 09:43:22 +10:00
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. 2019-06-18 17:31:49 +10:00
Beaudan
923d7ffe27 Change to get_n_service_nodes method 2019-06-18 14:52:52 +10:00
Beaudan
d12f6b6d32 Handle swarm nodes the same for us or contacts, attach our key to message api object 2019-06-17 15:59:22 +10:00
Beaudan
0948a344d2 Review refactor 2019-06-11 17:27:27 +10:00
Beaudan
d5546b9473 Lint 2019-06-11 16:30:45 +10:00
Beaudan
1f74088586 Send to IP 2019-06-11 16:30:01 +10:00
Beaudan
6b2b9ce926 Remove default port and use port from storage server responses 2019-06-11 16:30:01 +10:00
Beaudan
eea2b8e6a7 Do port null check inside rpc call 2019-06-11 16:29:04 +10:00
sachaaaaa
9d6c5bff36 make unverified https queries to the snodes 2019-06-07 16:12:25 +10:00
Beaudan
c02d5d4053 Lint 2019-06-03 10:42:18 +10:00
Beaudan
b43978ece1 Initial refactoring of sendmessage 2019-05-31 13:58:01 +10:00
Beaudan
620380d2d9 Move filter messages to message api and some other cleaning 2019-04-15 15:27:14 +10:00
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 2019-04-08 13:37:20 +10:00
Beaudan
0f771d4db4 Rename loki_fetch to loki_rpc 2019-04-08 13:37:20 +10:00
Beaudan
531ee92dcb Updated messenger to work with slightly different storage server API and changed swarm requests to go through storage server 2019-04-08 13:37:20 +10:00