1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
Commit graph

6366 commits

Author SHA1 Message Date
Stephen Shelton 159447b984
Don't "safely" visit relays in RouterHive 2020-07-06 18:11:15 -06:00
Stephen Shelton 56e2bc2c47
Acquire python's Global Interpreter Lock in callbacks 2020-07-06 17:40:42 -06:00
Stephen Shelton a88dc9f026
Prevent pybind from deleting HiveRouter pointers 2020-07-06 17:39:22 -06:00
Stephen Shelton 305795315b
Specify disabling RC gossiping (testing only) properly 2020-07-06 17:38:41 -06:00
Stephen Shelton 0e99f5bc86
Configure HiveContext it pybind correctly 2020-07-06 16:10:42 -06:00
Stephen Shelton 90ec789fe9
Avoid lokid in router hive 2020-07-06 13:41:21 -06:00
Stephen Shelton 0f074cff8c
Remove ambguity WRT loading and passing of Config 2020-07-06 13:38:02 -06:00
Stephen Shelton f607b99dbe
Fixes to Context::Configure with default config 2020-07-02 12:25:16 -06:00
Stephen Shelton ced2ac64fb
Remove last remnants of 'worker' 2020-07-02 11:25:53 -06:00
Stephen Shelton fb75329b88
Update SessionEstablished function sig in test_iwp_session.cpp 2020-07-02 11:12:35 -06:00
Stephen Shelton 97c14d81fd
Refactor test_llarp_exit_context.cpp to remove C API usage 2020-07-02 11:12:04 -06:00
Stephen Shelton cdaa28bfd3
Use QueueDiskIO instead of diskworker for db flushing 2020-07-02 10:36:12 -06:00
Stephen Shelton 88c3e9ce00
Remove worker thread parameter from Router constructors 2020-07-02 10:35:44 -06:00
Stephen Shelton ec20d94c6b
Fix Context::Configure() 2020-07-02 10:26:53 -06:00
Stephen Shelton 343252c48d
Use HiveContext and HiveRouter properly 2020-07-02 10:26:53 -06:00
Stephen Shelton ed47ba998f
Minor fixes around Context 2020-07-02 10:26:52 -06:00
Stephen Shelton 552dcce5fd
Use inheritance to handle Hive injection 2020-07-02 10:25:10 -06:00
Stephen Shelton b0d8568452
Remove llarp C API usage from RouterHive 2020-07-02 10:24:19 -06:00
Stephen Shelton 84c83a2400
Add specialized subclass of Router for Hive 2020-07-02 10:22:57 -06:00
Jason Rhinelander 2b2c41fdf6
Fix sqlite3 external target name 2020-07-02 10:22:07 -06:00
Stephen Shelton e38a507551
<3 Windows (prefer fs::path::string() over native()) 2020-07-02 10:22:07 -06:00
Stephen Shelton 1e95625f27
<3 apple -- avoid std::optional::value() 2020-07-02 10:22:07 -06:00
Stephen Shelton 93bafcf142
Set up sqlite3 deps 'if NOT TAGRET sqlite3' 2020-07-02 10:22:06 -06:00
Stephen Shelton eb9a862f51
Sqlite3 deps for Windows / static targets 2020-07-02 10:22:06 -06:00
Stephen Shelton 186a35c0e2
Appease clang (fixes for minor compilation errors) 2020-07-02 10:22:06 -06:00
Stephen Shelton fd230dd93b
<3 apple 2020-07-02 10:22:05 -06:00
Stephen Shelton 6e1a23cdc7
Use pkg_check_modules instead of find_package for sqlite3 2020-07-02 10:22:05 -06:00
Stephen Shelton 0ecdda7a89
make format 2020-07-02 10:22:04 -06:00
Stephen Shelton 8628212269
<3 jsonnet 2020-07-02 10:22:04 -06:00
Stephen Shelton 4aa6f8e2df
Use find_package() for sqlite3 2020-07-02 10:22:04 -06:00
Stephen Shelton aeb0c2be3a
Remove ability to stop routers from gossiping for now 2020-07-02 10:22:03 -06:00
Stephen Shelton bdac43e19f
Peer stats test which artificially stops a router from gossiping its RC 2020-07-02 10:22:03 -06:00
Stephen Shelton 63f41d6a98
Introduce mutex for hive's routers 2020-07-02 10:22:03 -06:00
Stephen Shelton 3b6f84c68c
Peek at peer stats db in test_peer_stats 2020-07-02 10:22:02 -06:00
Stephen Shelton c4cbbd6731
RouterHive: store router contexts by routerId instead of index 2020-07-02 10:22:02 -06:00
Stephen Shelton d1b629f494
RouterHive ConnectionAttemptEvent 2020-07-02 10:22:02 -06:00
Stephen Shelton d69d538f1a
Add missing files 2020-07-02 10:16:19 -06:00
Stephen Shelton b2a72dd46a
Initial test_peer_stats hive test 2020-07-02 10:16:19 -06:00
Stephen Shelton 2453fff10b
Piggyback on link callbacks to add peer stats 2020-07-02 10:13:26 -06:00
Stephen Shelton cb8e5354f5
Add some breadcrumbs about how ILinkLayer's callbacks are used 2020-07-02 10:13:26 -06:00
Stephen Shelton c9faddc8e4
Use fs::path since mac doesn't support std::filesystem 2020-07-02 10:13:25 -06:00
Stephen Shelton 5a8f390b3b
Make mutex mutable, fix typo 2020-07-02 10:13:25 -06:00
Stephen Shelton 023e061146
Make [router]:enable-peer-stats only valid for client 2020-07-02 10:13:25 -06:00
Stephen Shelton 54017652d6
log-- 2020-07-02 10:13:24 -06:00
Stephen Shelton d897099e1d
Track traffic peerstats 2020-07-02 10:13:24 -06:00
Stephen Shelton 77b98459dd
Implement RouterID serialization in sqlite_orm 2020-07-02 10:13:24 -06:00
Stephen Shelton a9ce319e76
Make llarp_time_t serializable in sqlite_orm 2020-07-02 10:13:23 -06:00
Stephen Shelton aa1c8f257f
Sort out peerstats receive <-> expiry windows 2020-07-02 10:13:23 -06:00
Stephen Shelton 4b4284ccf4
PeerDb sqlite optimizations 2020-07-02 10:13:23 -06:00
Stephen Shelton 5e05defc76
Add API query for peer stats, other related fixes 2020-07-02 10:13:22 -06:00