Stephen Shelton
37ca564005
Log when DHTSendTo fails @ Router::SendToOrQueue
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
Stephen Shelton
f61cd1a7da
Add some notes/comments about DHT message handling
5 years ago
Stephen Shelton
6b906de00d
Judicious removal of dead code
5 years ago
Jeff Becker
dea78d2326
change function signature for dht context to exclude time parameter
5 years ago
Jeff Becker
7a84bbe459
remove dht explore timer
5 years ago
Jeff Becker
bf0416cab8
remove Time_t, add operator overload for printing llarp_time_t and add to_json function for serializing llarp_time_t to json
5 years ago
Jeff Becker
d2d109e92c
llarp_time_t is now using std::chrono
5 years ago
Jeff Becker
f4520ac920
make decaying hashset use llarp::Time_t and move unit tests to use catch2
5 years ago
Jason Rhinelander
089056ca5b
Remove all ABSL_ATTRIBUTE_UNUSED uses
5 years ago
Jason Rhinelander
f84ce61d66
Removed empty cpp files
...
These aren't needed: CMake already knows how to follow #includes and
rebuild when headers change as long as the headers are included
*somewhere*. The extra .cpp files here just require building a bunch of
.cpp files with just header content that we just end up throw away
during linking (since the same things will also be compiled in whatever
other compilation units include the same headers).
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
Jeff Becker
763f61e454
dont collide variable names
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
adf8772f3c
Remove relayOrder from MessageDecoder
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
Stephen Shelton
fa1df8db63
Big R, little r, what begins with R?
5 years ago
Jeff Becker
ea3851d15f
rc gossiping
5 years ago
Jeff
8cad7fecbd
Merge pull request #1087 from majestrate/dont-flood-dht-2020-02-07
...
dont flood dht with requests, if we know of a router don't look it up
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
a9331a1431
fix unit test
5 years ago
Jeff Becker
cd27b33849
dont flood dht with requests, if we know of a router don't look it up
5 years ago
Jason Rhinelander
fe8a72750a
Silence unused parameter warning
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
ae8bb3751b
connect to closest for RC lookups too
5 years ago
Jeff Becker
49f696de9c
connect to closer nodes for introset lookups
5 years ago
Jeff Becker
3b66cf6e75
dht fixes, disable iterative lookups on clients, revert "fixes" from 0.6.3, pass in recursion depth from introset lookup
5 years ago
Stephen Shelton
c92e7ae5c7
Add warning when we found a null RC for a DHT lookup
5 years ago
Jeff Becker
a17b5f25b5
check for zero'd rc
5 years ago
Jeff Becker
4cb6301e28
use copy not move
5 years ago
Jeff Becker
c5feb07fb9
address feedback from tom
5 years ago
Jeff Becker
6fd714d193
contrib/testnet: fix up testnet config generator to make super centralized topology
...
llarp/context.cpp, llarp/nodedb.{h,c}pp: load netdb AFTER whitelist
llarp/router/router.cpp: explore always
llarp/router/{i,}rc_lookup_handler.{h,c}pp explore with whitelist, update routers with lookup before stale
5 years ago
Jeff Becker
9322df013b
check with rc handler before insert
5 years ago
Jeff Becker
2af64671bf
make it compile
5 years ago
Jeff Becker
0526fef37b
store RCs if valid
5 years ago
Jeff Becker
09f5f6dfa7
disable iterative lookup
5 years ago
Jeff
0e2c5736a8
Merge pull request #1034 from majestrate/dht-timeout-fixes-2020-01-10
...
dht timeout tweak
5 years ago
Jeff Becker
78cdf8f96b
variable lookup timeout on participants
5 years ago
Jeff Becker
8bb492da6e
dht timeout tweak
5 years ago
Jeff Becker
b2784dd5ec
explore faster
5 years ago
Jeff Becker
a3e7324e9a
make it compile
5 years ago
Jeff Becker
c3b14b32b4
relays do profiling and not hand out "shit" routers in explore
5 years ago
Jeff Becker
8b8d636ded
make format
5 years ago
Thomas Winget
e53e3db171
make dht context use new libuv timers
5 years ago
Stephen Shelton
66a058a2af
Make format
5 years ago
Stephen Shelton
93b8832026
Merge branch 'dev' into private-keys-backup-support
5 years ago
Jeff Becker
56dce90de9
add trace log level for tracking logic thread jobs
5 years ago
Stephen Shelton
db56e17c23
Rename bencode function for clarity
5 years ago
Jeff Becker
d54dc7a988
prune dht peers every router tick
5 years ago
Michael
edd0ec398f
Move thread stuff to subdirectory
5 years ago
Michael
1aec0dfa2b
Move logging to subdirectory
5 years ago
Jeff Becker
b904a4ee22
fix explore
5 years ago
Michael
777261cb20
Use ToString over ToHex
5 years ago
Michael
094b697b01
Replace StatusObject with underlying JSON type
5 years ago
Michael
16cdfbd5f0
clang-tidy modernize pass
5 years ago
Michael
f9e9227e19
Fix gcc trunk warnings
5 years ago
Jeff Becker
7e9ef19f69
use std::min
5 years ago
Jeff Becker
f4ac918b7e
remove -1
5 years ago
Jeff Becker
d595b51b0b
fix dht exploration ;~;
5 years ago
Jeff Becker
e1dd7ad97f
revert dht stuff
5 years ago
Jeff Becker
db2206664a
fix crashes in testnet
5 years ago
Jeff Becker
9a8470bcc1
* const correctness
...
* use std::map's upper_bound to find many closer entries
* randomize key for exploration to allow many explore jobs in paralell
5 years ago
Thomas Winget
baf8019fe5
Refactor Router code into more classes
...
This commit refactors functionality from the Router class into separate,
dedicated classes.
There are a few behavior changes that came as a result of discussion on
what the correct behavior should be.
In addition, many things Router was previously doing can now be provided
callback functions to alert the calling point when the asynchronous
action completes, successfully or otherwise.
5 years ago
Jeff Becker
1ee90f8852
do lookup for RC to neighboor even if we have them in our DHT buckets so we get an updated RC in reply
5 years ago
Jeff Becker
f62446e1a4
make it compile
5 years ago
Jeff Becker
a0f32fde13
reduce logging
5 years ago
Jeff Becker
12d4bfc379
always ask peers for next closest
5 years ago
Jeff Becker
16e20a9e79
try fixing bootstrap
5 years ago
Michael
488695047f
Remove redundant else blocks
5 years ago
Michael
d6751e3eeb
Move subset of messages to right directory
5 years ago
Michael
b89689fec3
Refactor path build code
5 years ago
Michael
491fee206b
Port code to use CryptoManager over passing Crypto pointers
5 years ago
Michael
3f53965b71
Remove all use of IBEncodeMessage
5 years ago
Jeff
28623766c1
Merge pull request #617 from majestrate/master
...
changes after consensous
5 years ago
Michael
7ca0927d8f
Replace dict_reader/list_reader with version which doesn't involve indirection
5 years ago
Jeff Becker
73f1d34239
make format and revert stupid alloc changes
5 years ago
Jeff Becker
8bee0a3d5e
fix
5 years ago
Jeff Becker
06be908369
use 1 for dht exploration
5 years ago