Maxim Shishmarev
a7afb44b8b
Merge pull request #177 from msgmaxim/spdlog
...
Boost log -> spdlog
2019-06-26 12:10:28 +10:00
Maxim Shishmarev
88a6709afe
custom log format
2019-06-25 18:02:49 +10:00
Maxim Shishmarev
19014dcf30
use timestamp from test result
2019-06-25 17:52:21 +10:00
Maxim Shishmarev
06d74cdcf4
enable log level options
2019-06-25 17:15:10 +10:00
Maxim Shishmarev
89cb8b6623
clean-up
2019-06-25 16:29:12 +10:00
Beaudan
3ee89d0e93
Rename logger and fix tests
2019-06-25 16:27:37 +10:00
Maxim Shishmarev
3bf4bbf2d9
Boost log -> spdlog
2019-06-25 15:39:49 +10:00
Beaudan Campbell-Brown
425b864912
Refactor logs ( #174 )
...
* Add LOG macro and function name to logging
* Move common.h to common folder
* Rename all BOOST_LOG_TRIVIAL to LOG
* LOG -> LOKI_LOG and use boost::filesystem
* Don't log from worker thread
* Do filename in line
2019-06-25 12:57:15 +10:00
Maxim Shishmarev
17f31207c7
add spdlog
2019-06-24 18:05:48 +10:00
Maxim Shishmarev
9f73e4705a
Merge pull request #173 from msgmaxim/blockchain-req
...
More refactoring: use a common interface for all Lokid requests
2019-06-24 10:22:12 +10:00
Maxim Shishmarev
d1736a04e9
run clang format
2019-06-24 10:20:43 +10:00
Maxim Shishmarev
881f294ff2
Use lokid client to get swarms
2019-06-21 17:49:56 +10:00
Maxim Shishmarev
f130de3643
Use lokid client to send pings
2019-06-21 17:20:19 +10:00
Maxim Shishmarev
bb8fa64a91
Use lokid_client for blockchain requests
2019-06-21 16:30:26 +10:00
Maxim Shishmarev
fa9cef8d5d
Merge pull request #171 from msgmaxim/versioned-api
...
small refactor: use common function for sn-sn calls
2019-06-21 12:56:23 +10:00
Maxim Shishmarev
4b1dbb2127
small refactor: use common function for sn-sn calls
2019-06-21 12:26:17 +10:00
Beaudan
2300fe6b8b
Reduce log to trace
2019-06-21 12:03:37 +10:00
Beaudan Campbell-Brown
a818f18068
Init logs ( #168 )
...
* Initialise logging to use the same sink and formatting
* Always store logs to disk, only take data-dir command line arg
* Review
2019-06-20 15:54:43 +10:00
Beaudan
bd0d4efa0d
Add HTTP_ERROR, only trigger callback once, move socket shutdown to destructor
2019-06-20 15:52:55 +10:00
Maxim Shishmarev
c3657c7cd5
Merge pull request #166 from msgmaxim/better-arguments
...
better command line argument handling
2019-06-19 15:40:39 +10:00
Maxim Shishmarev
681bf862ed
better command line arguments handling
2019-06-19 13:25:24 +10:00
Beaudan
6c493ae9e5
Add timestamps and severity to logs saved to file
2019-06-19 12:21:35 +10:00
Beaudan
16450e1b97
Make storage test logs less frequent
2019-06-19 11:13:40 +10:00
Beaudan
bd511fa2bd
More specific resolver and PoW difficulty logs plus format
2019-06-19 09:57:47 +10:00
Maxim Shishmarev
c0634c9b8d
small bug fix after merge
2019-06-18 17:03:30 +10:00
Maxim Shishmarev
cf8fe6469f
Store both pubkey and snode address per snode ( #162 )
2019-06-18 16:54:20 +10:00
Maxim Shishmarev
bcefe0a400
Provide RPC endpoint for retrieving peer test results and other stats ( #160 )
...
* Provide RPC endpoint for retrieving peer test results and other stats
* use deque instead of vector
* cutoff as 60 mins from now
2019-06-18 14:54:32 +10:00
Beaudan
135dbb4a05
Only retry storage test for 1 min. Plus a cheeky format
2019-06-17 16:59:01 +10:00
Maxim Shishmarev
37739c41f7
Merge pull request #159 from BeaudanBrown/check-header
...
Attach pubkey to SN requests even if signatures are disabled
2019-06-17 16:11:05 +10:00
Beaudan
b8ebd4883d
Move clearnet logic to make_sn_request function and make sure it is used everywhere
2019-06-17 15:36:35 +10:00
Beaudan
6b65e49ca1
Still attach the pubkey to test requests if signatures are disabled. Still check for header on the other side if signatures are disabled
2019-06-17 15:26:20 +10:00
Beaudan
a020c8f518
make_sn_request was still trying to use snode address instead of ip
2019-06-17 12:25:20 +10:00
Beaudan
5818c5b5ac
Need more bitzz
2019-06-17 11:51:16 +10:00
Beaudan Campbell-Brown
c3a0eadff1
Difficulty history ( #155 )
...
* Initial refactor of checkPoW to take a history of difficulties
* Load multiple difficulty levels etc
* Review
* Review changes. Refactor checkPoW to have separate get_valid_difficulty. More sensible names
* Return vector and append payload
2019-06-14 16:03:34 +10:00
Maxim Shishmarev
b9d5130f16
use https in blockchain testing
2019-06-13 15:34:48 +10:00
Beaudan
78eb18842b
Make worker ioc to go with worker thread. Stop thread gracefully
2019-06-12 16:02:30 +10:00
Beaudan
fc5e9f92f9
Make pow_difficulty_ atomic just in case
2019-06-11 18:08:30 +10:00
Beaudan
1f1daf968c
Create a new thread for querying the pow dns entry
2019-06-11 17:31:49 +10:00
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