49a51609dd
println => log
2020-03-30 11:59:17 +03:00
4f3d6bc587
Tests in weighted
2020-03-29 17:19:34 +03:00
7bc74a0e51
Merge branch 'weighted_tests' into weighted_bucket
2020-03-29 14:13:51 +03:00
c65a93b00e
log public key in weight calculation
2020-03-29 00:35:32 +03:00
c6197cae12
Merge branch 'master' into weighted_bucket
2020-03-28 21:11:06 +03:00
a644735e6e
start_providing log
2020-03-28 20:47:51 +03:00
b22934be64
hide public key from Debug
2020-03-28 20:24:55 +03:00
d8451e549c
log providers
2020-03-28 20:00:50 +03:00
bd888cefd9
log get_providers
2020-03-28 17:14:45 +03:00
8e2cd08956
better logs
2020-03-28 16:57:19 +03:00
5d20ec9ece
fix tests in kbucket.rs
2020-03-28 15:57:17 +03:00
ce86462a05
fix closest lgos
2020-03-27 20:18:42 +03:00
816ccac1ff
weighted: logs
2020-03-27 19:57:05 +03:00
0a4cd14efa
Closest iterators: lots of logs
2020-03-27 19:48:12 +03:00
6ef8f2c299
print calculated weight
2020-03-27 18:39:25 +03:00
98695967dd
patch libp2p-core from crates-io
2020-03-27 14:06:15 +03:00
d6d11c4748
libp2p core 0.16.0
2020-03-27 14:00:20 +03:00
87e71d96f8
patch transitive libp2p-core
2020-03-27 13:51:20 +03:00
9db560ede6
libp2p-core 0.16.8
2020-03-27 12:46:10 +03:00
204d574add
depend on trust graph via git
2020-03-27 12:30:22 +03:00
0d3e4f2051
Add protocols_handler::multi
module. ( #1497 )
...
* Add `protocols_handler::multi` module.
An implementation of `ProtocolsHandler` that contains multiple other
`ProtocolsHandler`s indexed by some key type.
* Randomise start position of handler polling.
* Address some review concerns.
* Add `IntoMultiHandler`.
* Check protocol names for uniqueness.
* Changes due to review.
- No more `Debug` bound for the key type and more generic log messages.
- Additional comments.
- Imports instead of fully-qualified use.
- Renamed `DuplicateProtoname` to `DuplicateProtonameError`.
* Replace `HashMap` with `Vec` in `Upgrades`.
* Review suggestion.
Co-authored-by: Roman Borschel <romanb@users.noreply.github.com >
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2020-03-26 18:25:17 +01:00
7220877a5c
Make the SwarmEvent report everything ( #1515 )
...
* Improve the SwarmEvent to report everything
* Address review
* Update swarm/src/lib.rs
Co-Authored-By: Roman Borschel <romanb@users.noreply.github.com >
Co-authored-by: Roman Borschel <romanb@users.noreply.github.com >
2020-03-26 18:02:37 +01:00
58585f6cf5
.gitignore
2020-03-26 19:42:58 +03:00
3d52a6b021
Sort weighted bucket iter() by weight
2020-03-26 19:06:44 +03:00
3c03467a52
Merge branch 'weighted_bucket' into weighted_tests
...
# Conflicts:
# protocols/kad/src/kbucket/weighted.rs
2020-03-26 12:26:18 +03:00
f60d004675
Use Vec instead of ArrayVec
2020-03-26 12:24:03 +03:00
135a181ec3
arbitrary weights
2020-03-26 11:45:42 +03:00
dca9099507
First test for weighted bucket
2020-03-25 20:26:50 +03:00
19a006329a
Merge branch 'bucket_ordering' into weighted_bucket
...
# Conflicts:
# protocols/kad/src/behaviour/test.rs
2020-03-25 19:26:43 +03:00
3e0528fdcb
merge
2020-03-25 19:26:24 +03:00
8ced6588e2
Merge branch 'fluence_master' into bucket_ordering
...
# Conflicts:
# protocols/kad/src/behaviour.rs
# protocols/kad/src/behaviour/test.rs
2020-03-25 19:17:47 +03:00
bbcb568bac
Merge branch 'master' into fluence_master
2020-03-25 18:12:05 +03:00
442847eb64
merge & fix kad/behaviour tests
2020-03-25 18:11:21 +03:00
53b3c34de5
Merge branch 'master' into weighted_bucket
...
# Conflicts:
# protocols/kad/src/behaviour.rs
# protocols/kad/src/behaviour/test.rs
2020-03-25 17:52:38 +03:00
5ff311d38d
remove commented line
2020-03-25 17:46:48 +03:00
c895ec386a
extend full_bucket_discard_pending test
2020-03-25 17:33:20 +03:00
e53e4b9059
fix bucket_update test
2020-03-25 17:28:59 +03:00
28ea62d1a9
[libp2p-swarm] Correct returned connections from notify_all. ( #1513 )
...
* [libp2p-swarm] Correct returned connections from notify_all.
If at least one connection was not ready (i.e. pending), only
those (pending) connections would be returned and considered on the next
iteration, whereas those which were ready should also remain
in the list of connections to notify on retry of `notify_all`.
* Simplify.
It seems unnecessary to use "poll all" -> "send all" semantics,
i.e. attempting an "atomic" broadcast. Rather, events send via
`notify_all` can be delivered as soon as possible, simplifying
the code further.
2020-03-25 13:53:03 +01:00
cdcbbf7e89
Integrate TrustGraph into kademlia
2020-03-24 21:20:06 +03:00
091e45374f
weighted bucket: enable bucket_update
2020-03-24 21:00:54 +03:00
5b901ab090
weighted bucket: fix full_bucket test
2020-03-24 20:26:33 +03:00
1e9e42065a
weighted bucket: implement update_pending
2020-03-24 19:27:06 +03:00
0c724c815f
weighted bucket: set weight to 0 in tests
2020-03-24 17:29:53 +03:00
8f5cc730b1
weighted bucket: it compiles!
2020-03-24 17:24:22 +03:00
5f86f15dda
Fix connection limit check. ( #1508 )
2020-03-24 12:27:56 +01:00
7eb6d425a4
weighted bucket: cleanup WIP
2020-03-24 14:22:41 +03:00
d6a20a7c61
Finish changes regarding PeerId, again ( #1460 )
...
* Finish changes regarding PeerId, again
* Fix bad merge
2020-03-24 11:56:06 +01:00
5b098a6e72
weighted bucket: implement update
2020-03-24 13:38:44 +03:00
826fb99483
weighted bucket: implement apply_pending
2020-03-24 12:56:27 +03:00
d5c0112fbb
weighted bucket: implement insert()
2020-03-24 12:08:39 +03:00