Commit graph

26 commits

Author SHA1 Message Date
Sean Darcy
d23c8417aa initial rebrand 2021-01-07 15:12:15 +11:00
Maxim Shishmarev
29b2658ca5 run clang-format 2020-09-22 12:47:03 +10:00
Jason Rhinelander
28f09402e6 Switch to C++17
- updates lokimq to dev branch
- changes compilation mode to C++17 (which is now required by lokimq,
  and already widely applied in lokinet and lokid dev branches)
- replace lokimq::string_view with std::string_view
- replace boost::optional with std::optional, except for:
  - boost::optional<std::function<...>> doesn't need optional at all
    because a std::function<...> is already nullable.
  - boost::optional<T&> isn't supported by std::optional because it
    makes little sense (it is just a `T*`) so just switch to T* instead.
2020-08-08 02:21:33 -03:00
Maxim Shishmarev
f8404d31aa Resolve conflicts and clean up 2019-09-09 12:52:11 +10:00
Beaudan
c34b79c6ef Add testnet flag and set it on service_node
Use different data dir and seed nodes for testnet

Use testnet flag to change the size of valid pubkey length

Move to a global flag for testnet instead of service node proptery. Fix compile issues and some other stuff, still will be issues to fix
2019-09-09 12:52:11 +10:00
Maxim Shishmarev
23b6b0e087 Clean-up log messages 2019-08-07 17:57:07 +10:00
sachaaaaa
0eac8bbefb declutter main: extract command line parser logic and logging stuff 2019-07-02 16:43:54 +10:00
Beaudan
16ee7cfdbf Remove boost log includes and remove last accidental logs 2019-06-27 15:21:28 +10:00
Maxim Shishmarev
c2d393abc6
Final (minor) API changes before the release (#181)
* remove namespace service_node

* API changes

* fix unit tests not compiling

* clang format
2019-06-26 14:42:45 +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
4b1dbb2127 small refactor: use common function for sn-sn calls 2019-06-21 12:26:17 +10:00
Maxim Shishmarev
6e1966ea46
Merge pull request #69 from sachaaaaa/make_format
Moved all vendor code under vendors and add make format
2019-04-11 18:05:58 +10:00
sachaaaaa
bd86b6ebca Moved all vendor code under vendors and add make format 2019-04-11 16:40:50 +10:00
sachaaaaa
7a74807cf4 Remove unused variables in serialization.cpp 2019-04-11 16:22:28 +10:00
sachaaaaa
7dedec2e00 Use boost::endian to ensure serialise data is little endian 2019-04-09 08:37:56 +10:00
Maxim Shishmarev
e1f7b4bbd0 add error code to http response 2019-04-08 17:09:06 +10:00
Maxim Shishmarev
3bf3e6c6ea bootstrapping swarm peers with messages in batches
- unify member names in Item and message_t
- use template functions for serializing
- serialize saved messages and send them to peers in batches
2019-04-05 16:06:02 +11:00
sachaaaaa
6534bbab67 Simplify serialisation (#38)
* Simplify serialisation

* capitalize constants
2019-04-05 14:13:35 +11:00
Maxim Shishmarev
12edc28d94 use std::string in constructor signatures; fix typos 2019-04-04 11:21:26 +11:00
Maxim Shishmarev
32ece42082 send messages in batches when dissolving 2019-04-03 17:58:47 +11:00
Beaudan
f76cffd644 Added include and ran linter 2019-03-25 10:35:21 +11:00
Maxim Shishmarev
c950a13b55 enforce 66 character long pubkeys 2019-03-22 18:06:49 +11:00
Maxim Shishmarev
1db27a7da4 integration tests are working for dynamic swarms 2019-03-21 16:53:13 +11:00
Beaudan
e70175ced5 Now resolving snode addresses nicely 2019-03-21 13:02:43 +11:00
Maxim Shishmarev
924ae57e10 tests are working again for static swarms 2019-03-21 10:41:48 +11:00