Commit graph

5606 commits

Author SHA1 Message Date
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 Campbell-Brown
4330e48185
Merge pull request #307 from BeaudanBrown/fix-self-note
Fix not to self
2019-06-17 15:57:41 +10:00
Beaudan Campbell-Brown
92b446b428
Merge pull request #306 from BeaudanBrown/remove-all-media
Comment out the show all media button
2019-06-17 15:57:22 +10:00
Beaudan Campbell-Brown
6a5da947e2
Merge pull request #305 from BeaudanBrown/pending-send
Consider friend requests that are still being sent as sent
2019-06-17 15:57:10 +10:00
Beaudan
e1d2484797 Can't update conversation that hasn't been created yet 2019-06-17 12:49:35 +10:00
Beaudan
ab15a4afd6 Review moving status setting to conversation init 2019-06-17 11:56:54 +10:00
Beaudan
3bb9d888dc Initialise conversation with ourselves as friends and don't allow it to be changed to anything else 2019-06-14 17:30:43 +10:00
Beaudan
47ac247f83 Comment out the show all media button 2019-06-14 15:32:09 +10:00
Beaudan
94b125f2cf Consider friend requests that are still being sent as sent 2019-06-14 14:09:48 +10:00
Beaudan Campbell-Brown
bea2e58679
Merge pull request #300 from BeaudanBrown/pow-bug
Fix PoW for very low difficulty
2019-06-12 17:28:56 +10:00
Beaudan
ca31649207 Trial value wasn't being initialised big enough for very low difficulty, also development should not have been there but I don't think it was doing anything 2019-06-12 17:26:08 +10:00
Beaudan Campbell-Brown
971aef0c1b
Merge pull request #296 from BeaudanBrown/clearnet-seeds
Clearnet seeds
2019-06-12 11:19:34 +10:00
Beaudan
0948a344d2 Review refactor 2019-06-11 17:27:27 +10:00
Beaudan Campbell-Brown
5c5155899e
Merge pull request #298 from BeaudanBrown/tls-fix
Have to put the tls setting here for some reason
2019-06-11 16:41:53 +10:00
Beaudan
d5546b9473 Lint 2019-06-11 16:30:45 +10:00
Beaudan
b6b0248e9d Retrieve from seed 2019-06-11 16:30:02 +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
Beaudan
52c191fc94 Merge branch 'development' into clearnet 2019-06-11 16:23:31 +10:00
Beaudan
8d4bfc27c9 Have to put the tls setting here for some reason 2019-06-11 14:59:23 +10:00
Beaudan Campbell-Brown
be32d364b5
Merge pull request #297 from sachaaaaa/https_queries
Make unverified https queries to the snodes
2019-06-11 12:37:31 +10:00
sachaaaaa
9d6c5bff36 make unverified https queries to the snodes 2019-06-07 16:12:25 +10:00
Beaudan Campbell-Brown
2198e66f1c
Merge pull request #294 from BeaudanBrown/dynamic-pow
Dynamic pow
2019-06-07 12:16:04 +10:00
Beaudan
7141847dfb Restart sendMessage logic if PoW changed an dfix NaN bug 2019-06-03 13:48:01 +10:00
Beaudan
f01d8088b7 Remove development PoW 2019-06-03 13:38:15 +10:00
Beaudan
dad52a784d Change wrong pow http response 2019-06-03 13:37:34 +10:00
Beaudan
dbcaaf98dc Lint 2019-06-03 13:37:34 +10:00
Beaudan
c27d1ef69a Clean some stuff in loki_rpc and get new difficulty from successful requests 2019-06-03 13:37:34 +10:00
Beaudan
e520bf109a Persist PoW difficulty and update if get response from snodes 2019-06-03 13:37:34 +10:00
Beaudan Campbell-Brown
e9b1359bab
Merge pull request #295 from BeaudanBrown/refactor-sendmessage
Refactor sendmessage
2019-06-03 13:37:00 +10:00
Beaudan
18a87d5463 Review changes 2019-06-03 13:35:58 +10:00
Beaudan Campbell-Brown
fd6f6c6a8c
Merge pull request #290 from Mikunj/loki-profile
Convert profile field in DataMessage to use LokiProfile
2019-06-03 13:09:33 +10:00
Beaudan
c02d5d4053 Lint 2019-06-03 10:42:18 +10:00
Beaudan
709db4bf54 Make sendMessage take options, remove redundant retrieve function and get constant 2019-06-03 10:26:42 +10:00
Beaudan
b43978ece1 Initial refactoring of sendmessage 2019-05-31 13:58:01 +10:00
Beaudan Campbell-Brown
1e11a6527c
Merge pull request #289 from Mikunj/p2p-ping
Updated pinging logic.
2019-05-31 11:18:20 +10:00
Beaudan Campbell-Brown
50c7da4432
Merge pull request #280 from Mikunj/fix-friend-request-logic
Fix friend request logic.
2019-05-31 11:17:20 +10:00
Beaudan Campbell-Brown
fbcd49ac5d
Merge pull request #270 from sachaaaaa/concurrent_polling
Refactor long polling for better concurrent requests
2019-05-31 11:06:24 +10:00
Mikunj
2c12c8a1d8 Convert profile field in data message to use LokiProfile instead of signal Contact. 2019-05-29 09:26:16 +10:00
Mikunj
53cbfb1f5c Merge branch 'development' into fix-friend-request-logic 2019-05-29 09:08:22 +10:00
sachaaaaa
1b1c18b928 Patch from Beau 2019-05-27 12:09:11 +10:00
Mikunj
147861790b Always send application/json as content type in rpc. 2019-05-27 11:27:52 +10:00
Mikunj
bc6586e5ce Removed duplicated function. 2019-05-27 09:46:02 +10:00
Mikunj
582298d9e4 Remove test which was causing hang. 2019-05-24 13:41:47 +10:00
Mikunj
7acce268cd linting. 2019-05-24 12:43:41 +10:00
Mikunj
f77b67d358 Updated tests.
Fix some minor logic.
2019-05-24 12:41:00 +10:00
Mikunj
986d34bbd9 linting 2019-05-24 11:07:58 +10:00
Mikunj
d4de4b13dd Fix incorrect import. 2019-05-24 11:07:13 +10:00