Jason Rhinelander
27b8743107
Add warns for introset publish failures
2020-03-01 11:48:43 -04:00
Stephen Shelton
2ebd9bbd95
Implement PublishServiceJob::SendReply()
2020-02-28 20:59:24 -07:00
Stephen Shelton
638ea2e0fd
Make format
2020-02-28 17:07:35 -07:00
Stephen Shelton
d09fd13dd6
Calculate 'candidateNumber' when we should store Introset
2020-02-28 17:00:49 -07:00
Stephen Shelton
37ca564005
Log when DHTSendTo fails @ Router::SendToOrQueue
2020-02-28 16:56:35 -07:00
Stephen Shelton
62014de91c
Handle PubIntro relayOrder logic on client-side
2020-02-28 16:45:04 -07:00
Stephen Shelton
a8623f09e9
Properly deserialize PubIntroMessages' relayed var
2020-02-28 16:30:10 -07:00
Stephen Shelton
c0fbe06c0f
Require 'From' and 'relayed' in PublishIntroMessage ctor
2020-02-28 16:28:57 -07:00
Stephen Shelton
f61cd1a7da
Add some notes/comments about DHT message handling
2020-02-28 16:26:52 -07:00
Stephen Shelton
6b906de00d
Judicious removal of dead code
2020-02-28 16:26:45 -07:00
Jeff Becker
dea78d2326
change function signature for dht context to exclude time parameter
2020-02-27 11:37:23 -05:00
Jeff Becker
7a84bbe459
remove dht explore timer
2020-02-27 11:28:01 -05:00
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
2020-02-25 12:05:13 -05:00
Jeff Becker
d2d109e92c
llarp_time_t is now using std::chrono
2020-02-24 15:25:03 -05:00
Jeff Becker
f4520ac920
make decaying hashset use llarp::Time_t and move unit tests to use catch2
2020-02-24 15:22:49 -05:00
Jason Rhinelander
089056ca5b
Remove all ABSL_ATTRIBUTE_UNUSED uses
2020-02-24 14:27:44 -04:00
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).
2020-02-21 23:39:11 -04:00
Jeff
7c5a721457
Merge pull request #1114 from notlesh/redundant-introset-lookup-improvements-2020-02-20
...
Redundant introset lookup improvements
2020-02-20 15:25:09 -05:00
Stephen Shelton
63c3106db2
Make format
2020-02-20 13:14:20 -07:00
Stephen Shelton
0429bafbb3
Merge pull request #1111 from notlesh/redundant-introset-propagation-2020-02-19
...
Redundant introset propagation
2020-02-20 10:50:06 -08:00
Stephen Shelton
66cb30fa58
Refactor: remove recursionDepth from DHT lookups
2020-02-20 11:18:05 -07:00
Stephen Shelton
45a36fcfee
Rework FindIntro logic per redundant strategy
2020-02-20 09:23:41 -07:00
Stephen Shelton
4c499fb076
Make format
2020-02-20 08:36:29 -07:00
Stephen Shelton
6966168f5a
Minor improvements to DHT inroset propagation
2020-02-19 17:30:58 -07:00
Stephen Shelton
dff9aeb250
Propagate Introset publishing redundantly
2020-02-19 17:07:46 -07:00
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").
2020-02-19 18:21:25 -04:00
Jeff Becker
763f61e454
dont collide variable names
2020-02-14 17:43:13 -04:00
Stephen Shelton
9dfcfbc3ac
Bencode/decode relayOrder in lexigraphical order, make it uint64_t
2020-02-14 17:43:13 -04:00
Stephen Shelton
127e7ef31b
Make format
2020-02-14 17:43:13 -04:00
Stephen Shelton
adf8772f3c
Remove relayOrder from MessageDecoder
2020-02-14 17:43:13 -04:00
Stephen Shelton
6ca2c11e59
Serialize / deserialize relayOrder @ FindIntroMessage
2020-02-14 17:43:13 -04:00
Stephen Shelton
906803e387
Refactor DHT introset lookups to use redundant lookup strategy
2020-02-14 17:43:13 -04:00
Stephen Shelton
fa1df8db63
Big R, little r, what begins with R?
2020-02-14 17:43:13 -04:00
Jeff Becker
ea3851d15f
rc gossiping
2020-02-12 12:10:48 -05:00
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
2020-02-08 11:26:07 -05:00
Jeff Becker
00260555bd
logic simplification
2020-02-07 15:28:13 -05:00
Jeff Becker
e4a16dfdd5
fix comment
2020-02-07 15:22:58 -05:00
Jeff Becker
b211450cc8
always recurse to second closest if we don't have it
2020-02-07 15:20:47 -05:00
Jeff Becker
19d91a440f
move declaration of peer
2020-02-07 14:50:02 -05:00
Jeff Becker
3bea7327cb
handle end case by telling requester that it's not there
2020-02-07 14:46:12 -05:00
Jeff Becker
7e1a6236be
if relayed try closer router if we don't have an intro
2020-02-07 14:35:57 -05:00
Jeff Becker
a9331a1431
fix unit test
2020-02-07 13:48:56 -05:00
Jeff Becker
cd27b33849
dont flood dht with requests, if we know of a router don't look it up
2020-02-07 13:19:00 -05:00
Jason Rhinelander
fe8a72750a
Silence unused parameter warning
2020-01-31 16:47:25 -04:00
Jeff Becker
99eb7726ff
initial dht key blinding
2020-01-27 16:30:41 -05:00
Jeff Becker
4f81b913ef
make router version member optional on serialization
2020-01-27 11:55:19 -05:00
Jeff Becker
9efd796145
initial wack at 0.7.0 dht fixes
2020-01-27 11:54:51 -05:00
Jeff Becker
626b2a6196
return true
2020-01-23 12:10:58 -05:00
Jeff Becker
e87b754906
fix recursion depth on introset lookup
2020-01-23 12:10:58 -05:00
Jeff Becker
2c0dc12f39
refactor single char variables in DHT (mostly)
2020-01-23 12:10:58 -05:00