mhchia
3372c32432
Fix examples and modify new_node
...
- Fix examples `chat.py` and `echo.py`
- Use trio directly, instead of `trio-asyncio`
- Remove redundant code
- Change entry API `new_node` to `new_host_trio`
2019-12-24 18:03:18 +08:00
mhchia
ce5663705f
Merge branch 'master' into feature/porting-to-trio
2019-12-24 02:19:43 +08:00
Kevin Mai-Husan Chia
1571bfac07
Merge pull request #386 from ShadowJonathan/issue_384
...
fixes #384
2019-12-23 14:25:38 +08:00
Jonathan de Jong
17074dded0
add tests to new multiple multiaddr change
2019-12-21 10:35:34 +01:00
NIC619
e51d376d5e
Combine peers_gossipsub
and peers_floodsub
2019-12-19 14:44:49 +08:00
NIC619
f3732f9480
Fix tests
2019-12-18 12:37:04 +08:00
mhchia
47d10e186f
Add SubscriptionAPI
...
And `TrioSubscriptionAPI`, to make subscription io-agnostic.
2019-12-17 18:17:28 +08:00
mhchia
fb0519129d
Refine Mplex.close
and SwarmConn.close
...
Ensure `close` cleans up things and cancel the service finally.
2019-12-17 15:50:55 +08:00
Alex Stokes
733b1d08b6
Merge pull request #372 from ralexstokes/add-py36-compatibility
...
Add py36 compatibility
2019-12-10 17:28:49 -08:00
NIC Lin
ad379221b9
Merge pull request #373 from NIC619/refactor_and_cleanup_gossipsub
...
Refactor and cleanup gossipsub
2019-12-07 16:28:55 +08:00
mhchia
837a249552
Fix security
module
2019-12-07 00:14:01 +08:00
mhchia
1929f307fb
Fix all modules except for security
2019-12-06 17:06:37 +08:00
Chih Cheng Liang
82dcce214a
Remove kademlia module ( #377 )
...
* Remove kademlia and routing/kademlia
* cleanup
* Fix routed_host test
* lint mypy
* fix doc
* remove set_up_nodes_by_transport_and_disc_opt and fix typing
2019-12-06 14:14:33 +08:00
NIC619
db0017ddbb
Fix lint after applying suggestion
2019-12-05 17:33:07 +08:00
NIC Lin
b4900d53da
Apply suggestions from code review
...
Co-Authored-By: Chih Cheng Liang <chihchengliang@gmail.com>
2019-12-05 15:21:09 +08:00
NIC619
fae3798ca9
Apply PR feedback: correct the comment in test
2019-12-05 14:40:49 +08:00
NIC619
8e591229fd
Update the sleep time in test_handle_prune
2019-12-03 23:10:56 +08:00
NIC619
bb15c817b1
Fix var access before assignment
2019-12-03 22:14:45 +08:00
NIC619
ea6cd30a16
Add back some comment and TODO. Add comment to tests
2019-12-03 18:45:33 +08:00
NIC619
60bd4694a4
Extend wait time for test to pass
2019-12-03 18:03:45 +08:00
mhchia
e9ab0646e3
Fix Pubsub
2019-12-03 17:27:49 +08:00
NIC619
b405fd76e9
Add test for gossip heartbeat
2019-12-03 15:49:58 +08:00
NIC619
8dec0b111d
Add test for mesh heartbeat
2019-12-03 15:49:45 +08:00
Alex Stokes
63fd531ed0
Fixes to add python 3.6 compatibility
2019-12-02 16:33:32 -08:00
mhchia
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
mhchia
eb494e8682
Fix ping protocol
2019-12-01 19:17:32 +08:00
mhchia
6149aacc01
Fix examples
2019-12-01 17:55:07 +08:00
mhchia
31bf774a16
Fix tests in protocol_muxer
and libp2p
2019-12-01 17:43:14 +08:00
mhchia
62e47080f5
Fix tests/network
2019-12-01 16:51:06 +08:00
mhchia
79fcdf3a02
Update tests in test_tcp.py
...
Besides, run `make format`
2019-12-01 16:26:16 +08:00
mhchia
1e600ea7e0
Fix Mplex
and Swarm
2019-11-29 19:09:56 +08:00
NIC619
1c54c38ca7
Fix lint and add signing_strict
to interop tests
2019-11-29 17:24:40 +08:00
NIC619
f4e86b1172
Add tests for failed signature validation cases
2019-11-29 14:13:07 +08:00
NIC619
d5d6962dce
Update Pubsub fixture and test
2019-11-27 17:15:24 +08:00
NIC Lin
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
Jason Carver
d589daf00d
Fill in template variables
2019-11-26 13:33:57 -08:00
Jason Carver
d1b5a56ccf
Match linting rules after merging in template
2019-11-26 13:33:08 -08:00
Jason Carver
27da312285
Splice in project template
...
I tried to merge it so that future updates from the template will be
much easier.
The template is hosted at:
https://github.com/ethereum/ethereum-python-project-template
2019-11-26 13:30:41 -08:00
mhchia
ec43c25b45
Rewrite factories, made some of the test running
2019-11-26 19:24:30 +08:00
Chih Cheng Liang
a397ccdc04
makes test_mplex_stream.py::test_mplex_stream_read_write work
2019-11-26 15:27:06 +08:00
Chih Cheng Liang
c55ea0e5bb
implement trio queue interface
2019-11-26 15:27:05 +08:00
Chih Cheng Liang
41ff884eef
rewrite tcp reader/writer interface
2019-11-26 15:27:05 +08:00
NIC619
94c7a0bca4
Apply PR feedback and fix
2019-11-26 14:04:28 +08:00
NIC619
076dae50f3
Fix missing BasicHost
interface update
2019-11-25 22:05:33 +08:00
Chih Cheng Liang
bcd7890124
Move test utilities to tools ( #356 )
...
* move test factories to libp2p/tools
* remove unused inits
* move pubsub test utils to tools
* cleanup test_interop
* fix typing libp2p/tools/utils
* add typing to pubsub utils
* fix factories typing
* fix typing for floodsub_integration_test_settings
* fix rest of the typing
* fix isort
2019-11-21 11:47:54 +08:00
Alex Stokes
29873584dc
update test for identify and ping using new test fixture via PR feedback
2019-11-07 21:11:35 -08:00
Alex Stokes
30dee28ef2
add asynccontextmanager utility for a pair of connected hosts
2019-11-07 20:59:01 -08:00
Alex Stokes
9c05e2b0bb
add basic test for identify
2019-11-07 08:05:39 -08:00
Alex Stokes
e61a5a677f
clean up tests w/ default protocols in place
2019-11-07 07:51:44 -08:00
mhchia
10dd997805
Reorganize factories
2019-11-06 12:11:09 -08:00