Commit graph

188 commits

Author SHA1 Message Date
Maxim Shishmarev
85afdbb7a0 Ping lokid regularly 2019-06-07 17:51:44 +10:00
Maxim Shishmarev
7e2f5d3a8d
Merge pull request #150 from loki-project/master
Merge master into dev
2019-06-07 17:01:10 +10:00
sachaaaaa
b2e8eec1bf use TLS1.2 instead of SSL3 2019-06-07 16:10:35 +10:00
sachaaaaa
f857791e90 boost log instead of cerr 2019-06-07 12:04:05 +10:00
sachaaaaa
5d4a4cb270 discard eof error in on_shutdown for connection_t 2019-06-07 11:46:58 +10:00
sachaaaaa
1da7edd444 https client to execute callback at the right moment 2019-06-07 10:05:05 +10:00
sachaaaaa
9a48f25df1 use boost log, remove unused function and simplify loading keys 2019-06-07 10:05:05 +10:00
sachaaaaa
b607bcb920 use ssl in new "make_https_request" function, used for sn to sn comm 2019-06-07 10:05:05 +10:00
sachaaaaa
1e4e3dbac5 enable SSL for http server 2019-06-07 10:04:34 +10:00
Beaudan
76abdc28cd Set the content type to json when sending pow and send it even for successful requests
Clang format

Fix mac compile error, print PoW and changed error code

Review syntax

Return early if DNS errors
2019-06-06 17:14:14 +10:00
Beaudan
6c77221792 Respond with PoW difficulty if PoW is invalid 2019-06-06 17:13:17 +10:00
Beaudan
688841989c check the difficulty every 10 mins 2019-06-06 17:13:17 +10:00
Beaudan
4506a4682c Initial loading of PoW difficulty 2019-06-06 17:13:17 +10:00
Beaudan
5b49669efc Refactor snodes_to_json 2019-06-06 16:03:15 +10:00
Beaudan
88018232c2 Review consts 2019-06-06 15:05:16 +10:00
Beaudan
240dc6d0f6 Store the ip for snodes as well and send with client requests 2019-06-04 15:29:36 +10:00
Beaudan
f9e9a0a412 Use port returned from lokid 2019-06-04 14:28:51 +10:00
Beaudan
7318523fd3 Refactor getting snode list json into function 2019-06-04 14:19:30 +10:00
Beaudan
61b2a119b2 Send the address and port for client swarm requests 2019-06-04 14:11:11 +10:00
Maxim Shishmarev
418bed3af0 disable signatures for blockchain request (use restricted mode instead) 2019-05-30 11:57:48 +10:00
Maxim Shishmarev
94149d3d45 perform blockchain testing alongside storage testing 2019-05-30 10:57:49 +10:00
sachaaaaa
65302e8614 fix static member not defined in cpp 2019-05-29 13:46:04 +10:00
sachaaaaa
a398a2b412 Token Bucket rate-limiting for snode to snode requests 2019-05-27 16:06:49 +10:00
sachaaaaa
44bc6662a9 Use safer acceptor::async_accept overload 2019-05-16 16:48:28 +10:00
Maxim Shishmarev
6b50c6ac5a
Merge pull request #128 from msgmaxim/peer-testing
Check tester's identify before performing storage test
2019-05-15 15:39:46 +10:00
Maxim Shishmarev
9c1be0cbc1 check tester before performing storage test 2019-05-15 11:20:55 +10:00
sachaaaaa
f121c735ed Limit client retrieve request to 10 messages at a time 2019-05-15 11:20:53 +10:00
Maxim Shishmarev
ebefe5ca02
Merge pull request #126 from msgmaxim/real-keypairs
use real loki keypairs in integration test
2019-05-15 11:06:11 +10:00
Ryan Tharp
2a3b1d8fc2 add missing DISABLE_POW check 2019-05-14 10:09:36 -07:00
Maxim Shishmarev
4ce6df79f3 use real loki keypairs in integration test 2019-05-14 17:10:02 +10:00
Maxim Shishmarev
585da8305f
Merge pull request #121 from msgmaxim/peer-testing
attach signatures to message test requests
2019-05-13 15:46:33 +10:00
Maxim Shishmarev
558bbdc495 attach signatures to message test requests 2019-05-13 15:35:33 +10:00
Maxim Shishmarev
eb10292a28
Merge pull request #115 from msgmaxim/peer-testing
Peer testing, part II (final)
2019-05-13 15:15:11 +10:00
Maxim Shishmarev
8704a23b55 disambiguate method name 2019-05-13 15:14:45 +10:00
Maxim Shishmarev
656ddd19a4
Merge pull request #116 from msgmaxim/single-ioc
Use a single io_context
2019-05-13 15:13:03 +10:00
Maxim Shishmarev
104b72697a check signature for message test requests; address other review comments 2019-05-13 11:20:46 +10:00
beaudan
d902bed32b Fix silly log and make swarm logs error 2019-05-13 06:24:27 +10:00
beaudan
d9c9cc91d0 Couplle extra logs and longer poll time 2019-05-12 06:02:36 +10:00
Maxim Shishmarev
744702cfb5 Use a single io_context 2019-05-10 16:21:27 +10:00
Maxim Shishmarev
6314864335 add responding to message tests, retrying if necessary 2019-05-10 15:47:26 +10:00
sachaaaaa
68885b4a9d default port to 22023 2019-05-10 11:44:57 +10:00
sachaaaaa
d823bf2a69 command line lokid rpc port option 2019-05-10 11:27:26 +10:00
Maxim Shishmarev
b00abaf12c
Merge pull request #109 from sachaaaaa/version
Print build info at start up
2019-05-09 16:42:11 +10:00
Maxim Shishmarev
56f661d3db add .snode part to our own snode address 2019-05-09 16:22:24 +10:00
sachaaaaa
6b050886a6 Print build info at start up 2019-05-09 15:05:41 +10:00
Maxim Shishmarev
4c246a8b78 better handle json errors 2019-05-09 12:28:30 +10:00
Maxim Shishmarev
a3463214a2
Merge pull request #107 from sachaaaaa/sig_refactor
Refactor relaying code and fix signature for integration tests
2019-05-09 10:50:35 +10:00
sachaaaaa
d15a165424 Improve function naming 2019-05-09 10:40:26 +10:00
Maxim Shishmarev
c53237a039
Merge pull request #104 from sachaaaaa/pow_snode
Verify proof of work for relayed messages
2019-05-08 16:38:47 +10:00
sachaaaaa
61be6693f7 Refactor relaying code and enable signature for integration tests 2019-05-08 16:00:32 +10:00