Jason Rhinelander
1697bf90fe
C++17
...
Compiles with C++17, replaces ghc::filesystem with std::filesystem,
nonstd::optional with std::optional, and llarp::string_view with
std::string_view.
4 years ago
Jason Rhinelander
3c6aa002b8
Fix errors and warnings compiling on mac
5 years ago
Stephen Shelton
273270916e
The Great Wall of Blame
...
This commit reflects changes to clang-format rules. Unfortunately,
these rule changes create a massive change to the codebase, which
causes an apparent rewrite of git history.
Git blame's --ignore-rev flag can be used to ignore this commit when
attempting to `git blame` some code.
5 years ago
Stephen Shelton
ea835405c5
Refactor NotifyRouterEvent() to forward args, event code cleanup
...
This template-ifies Router::NotifyRouterEvent() up so that it accepts
the arguments to instantiate the specified event type, forwarding them
to std::make_unique. This would allow (in the future) the function to
no-op the call and avoid memory allocation. It also slightly reduces
the amount of code required to fire an event.
This commit also simplifies some of the RouterEvent code to reduce
redundancy.
5 years ago
Stephen Shelton
6664202868
Add FindRouterSentEvent and FindRouterReceivedEvent to RouterHive
5 years ago
Thomas Winget
84a1d7dbcc
clang format.......
5 years ago
Thomas Winget
a58a8c9a61
hive.py now defaults to 1000 relays because f your box.
...
also check for error on uv_async_init...
may want to `ulimit -Sn $(ulimit -Hn)`...
5 years ago
Thomas Winget
c8c66f0a5f
some refactoring of tooling code, added RCGossipReceivedEvent
5 years ago
Stephen Shelton
4741d81051
Add GotIntro event to RouterHive
5 years ago
Jeff Becker
e7689b40a7
dht pub intro message router event thiny doo
5 years ago
Stephen Shelton
321314b456
Remove re-propagation of introsets when we are wrong candidate
5 years ago
Stephen Shelton
9be8050854
Make format
5 years ago
Stephen Shelton
886a981997
Consolidate introset publishing constants
5 years ago
Stephen Shelton
bbee45118e
Remove redundant lookup logic from relays
5 years ago
Jeff Becker
e3b5fb4dd9
add local publish intro message to send reply down path
5 years ago
Jeff Becker
b4a59a0b1a
make format
5 years ago
Jeff Becker
dd21cba1fe
dedup via txid not keyspace location
5 years ago
Stephen Shelton
638ea2e0fd
Make format
5 years ago
Stephen Shelton
d09fd13dd6
Calculate 'candidateNumber' when we should store Introset
5 years ago
Stephen Shelton
62014de91c
Handle PubIntro relayOrder logic on client-side
5 years ago
Stephen Shelton
a8623f09e9
Properly deserialize PubIntroMessages' relayed var
5 years ago
Stephen Shelton
c0fbe06c0f
Require 'From' and 'relayed' in PublishIntroMessage ctor
5 years ago
Jason Rhinelander
089056ca5b
Remove all ABSL_ATTRIBUTE_UNUSED uses
5 years ago
Jeff
7c5a721457
Merge pull request #1114 from notlesh/redundant-introset-lookup-improvements-2020-02-20
...
Redundant introset lookup improvements
5 years ago
Stephen Shelton
63c3106db2
Make format
5 years ago
Stephen Shelton
0429bafbb3
Merge pull request #1111 from notlesh/redundant-introset-propagation-2020-02-19
...
Redundant introset propagation
5 years ago
Stephen Shelton
66cb30fa58
Refactor: remove recursionDepth from DHT lookups
5 years ago
Stephen Shelton
45a36fcfee
Rework FindIntro logic per redundant strategy
5 years ago
Stephen Shelton
4c499fb076
Make format
5 years ago
Stephen Shelton
6966168f5a
Minor improvements to DHT inroset propagation
5 years ago
Stephen Shelton
dff9aeb250
Propagate Introset publishing redundantly
5 years ago
Jason Rhinelander
ac1486d0be
Replace absl::optional with optional-lite
...
Step 1 of removing abseil from lokinet.
For the most part this is a drop-in replacement, but there are also a
few changes here to the JSONRPC layer that were needed to work around
current gcc 10 dev snapshot:
- JSONRPC returns a json now instead of an optional<json>. It doesn't
make any sense to have a json rpc call that just closes the connection
with returning anything. Invoked functions can return a null (default
constructed) result now if they don't have anything to return (such a
null value won't be added as "result").
5 years ago
Stephen Shelton
9dfcfbc3ac
Bencode/decode relayOrder in lexigraphical order, make it uint64_t
5 years ago
Stephen Shelton
127e7ef31b
Make format
5 years ago
Stephen Shelton
6ca2c11e59
Serialize / deserialize relayOrder @ FindIntroMessage
5 years ago
Stephen Shelton
906803e387
Refactor DHT introset lookups to use redundant lookup strategy
5 years ago
Jeff Becker
ea3851d15f
rc gossiping
5 years ago
Jeff Becker
00260555bd
logic simplification
5 years ago
Jeff Becker
e4a16dfdd5
fix comment
5 years ago
Jeff Becker
b211450cc8
always recurse to second closest if we don't have it
5 years ago
Jeff Becker
19d91a440f
move declaration of peer
5 years ago
Jeff Becker
3bea7327cb
handle end case by telling requester that it's not there
5 years ago
Jeff Becker
7e1a6236be
if relayed try closer router if we don't have an intro
5 years ago
Jeff Becker
99eb7726ff
initial dht key blinding
5 years ago
Jeff Becker
4f81b913ef
make router version member optional on serialization
5 years ago
Jeff Becker
9efd796145
initial wack at 0.7.0 dht fixes
5 years ago
Jeff Becker
626b2a6196
return true
5 years ago
Jeff Becker
e87b754906
fix recursion depth on introset lookup
5 years ago
Jeff Becker
2c0dc12f39
refactor single char variables in DHT (mostly)
5 years ago
Jeff Becker
49f696de9c
connect to closer nodes for introset lookups
5 years ago