Commit Graph

762 Commits

Author SHA1 Message Date
db0017ddbb Fix lint after applying suggestion 2019-12-05 17:33:07 +08:00
b4900d53da Apply suggestions from code review
Co-Authored-By: Chih Cheng Liang <chihchengliang@gmail.com>
2019-12-05 15:21:09 +08:00
67f02c512a Remove unnecessary check and fix test 2019-12-05 15:10:04 +08:00
e6813da5f5 Refactor _get_peers_to_send 2019-12-05 14:35:34 +08:00
c08b2375e1 Fix: should not remove topic if no peers 2019-12-03 23:10:47 +08:00
a9abf1e3dd Fix list deletion and add list remove check 2019-12-03 22:37:49 +08:00
bb15c817b1 Fix var access before assignment 2019-12-03 22:14:45 +08:00
ea6cd30a16 Add back some comment and TODO. Add comment to tests 2019-12-03 18:45:33 +08:00
e9ab0646e3 Fix Pubsub 2019-12-03 17:27:49 +08:00
5efdf4c703 Group messages for peer in heartbeat 2019-12-03 15:48:23 +08:00
ab1500c708 Remove unneccessary check in gossip heartbeat 2019-12-03 15:03:06 +08:00
63fd531ed0 Fixes to add python 3.6 compatibility 2019-12-02 16:33:32 -08:00
920cf646ef Fix lint and add check in fanout heartbeat 2019-12-02 22:49:27 +08:00
a7e0c5d737 Add missing cleanup in gossipsub remove_peer 2019-12-02 22:41:49 +08:00
357341e0d8 Remove unneccessary filter and check in gossipsub 2019-12-02 22:40:35 +08:00
c2d88962c7 Add gossipsub heartbeat_initial_delay 2019-12-02 16:55:16 +08:00
0672f5ae6d Fix: move heartbeat delay to heartbeat 2019-12-02 16:38:48 +08:00
bdbb7b2394 Add RoutedHostFactory
And skip the tests for `RoutedHost` for now, since there are too many to
be fixed in `Kademlia`, and it's not that necessary now.
2019-12-01 19:17:44 +08:00
eb494e8682 Fix ping protocol 2019-12-01 19:17:32 +08:00
31bf774a16 Fix tests in protocol_muxer and libp2p 2019-12-01 17:43:14 +08:00
79fcdf3a02 Update tests in test_tcp.py
Besides, run `make format`
2019-12-01 16:26:16 +08:00
50fd0acf41 Cleanup outdated TODOs in gossipsub 2019-11-30 20:19:17 +08:00
0a52a05375 Del entry if no more peers subscribe to the topic 2019-11-30 20:02:11 +08:00
e59ac6a250 Cleanup TODOs in pubsub 2019-11-30 17:12:37 +08:00
dfdcf524b7 Merge pull request #362 from NIC619/add_signing_and_verification_to_pubsub
Add signing and verification to pubsub
2019-11-30 13:44:12 +08:00
658a0ae156 Apply PR feedback:
move signature validation logic into signature validator
2019-11-29 19:37:48 +08:00
1e600ea7e0 Fix Mplex and Swarm 2019-11-29 19:09:56 +08:00
1c54c38ca7 Fix lint and add signing_strict to interop tests 2019-11-29 17:24:40 +08:00
a262b94836 Apply PR feedback:
check if signing key and ID match
2019-11-29 14:12:42 +08:00
064c109b64 Fix signature validator:
Add prefix and return verify result
2019-11-28 18:45:00 +08:00
27ecd4b0ed Mock dependencies that are excluded in readthedocs
It seems preferable to import just fastecdsa. But if you do that,
then some kind of side-effect doesn't happen, which means that `sec1` is
not available as an attribute on `fastecdsa.encoding`.

So we specifically mock the sub-modules as well.
2019-11-27 14:07:14 -08:00
2a9dc96269 Merge pull request #369 from carver/docs-travis-target
Add docs test to Travis CI
2019-11-27 10:36:15 -08:00
d5d6962dce Update Pubsub fixture and test 2019-11-27 17:15:24 +08:00
0fd400fdf8 Sign and verify in Pubsub 2019-11-27 17:15:24 +08:00
f3c9972159 Implement Pubsub signature validator 2019-11-27 17:15:24 +08:00
683710573e Add strict_signing: bool and sign_key to Pubsub 2019-11-27 17:15:23 +08:00
da10fc8531 Merge pull request #360 from NIC619/store_our_keypair_in_peerstore
Store our keypair in peerstore
2019-11-27 17:14:36 +08:00
d503950179 Fix all doc build warnings 2019-11-26 17:44:33 -08:00
cac7e3909a Merge pull request #357 from NIC619/minor_fix_replace_del
Replace (check and) del pattern with pop method
2019-11-26 19:39:41 +08:00
ec43c25b45 Rewrite factories, made some of the test running 2019-11-26 19:24:30 +08:00
9f3f2c53da Apply PR feedback:
use defaultdict for peer data map
2019-11-26 16:18:15 +08:00
417b5e7d61 remove unused asyncio 2019-11-26 15:27:06 +08:00
6ab0e108d3 minor 2019-11-26 15:27:06 +08:00
a397ccdc04 makes test_mplex_stream.py::test_mplex_stream_read_write work 2019-11-26 15:27:06 +08:00
c55ea0e5bb implement trio queue interface 2019-11-26 15:27:05 +08:00
41ff884eef rewrite tcp reader/writer interface 2019-11-26 15:27:05 +08:00
d4d345c3c7 progressing 2019-11-26 15:27:05 +08:00
ed17bfd663 hack chat example 2019-11-26 15:27:04 +08:00
94c7a0bca4 Apply PR feedback and fix 2019-11-26 14:04:28 +08:00
fab27b0357 Fix lint 2019-11-26 12:35:50 +08:00