4a53fc3111
Direct Peers : Gossipsub V1.1 ( #594 )
...
* added basic structure for direct peers
* added direct connect heartbeat
* added logic to reject GRAFT from direct peers
* added invocation of direct_connect_heartbeat
* updated _get_peers_to_send to include direct peers
* fixed failing gossipsub core and demo tests
* fixed failing test_examples.py
* add tests for peer management
* fix lint
* update tests
* fixed direct_peers type and peer_records test
* fixed failing gossipsub direct peers test
* added reject graft test
* updated reconnection test
* added newsfragment
* improved reject graft test
* updated default value for direct peers
* renamed direct_connect_init_delay parameter
* reverted back to direct_connect_initial_delay param name
---------
Co-authored-by: Khwahish Patel <khwahish.p1@ahduni.edu.in >
2025-05-20 07:31:57 -06:00
e56974078a
Fix exception handling
2025-05-15 13:49:02 -06:00
745458cdff
Reduce logging level to debug in TCPListener.listen()
2025-05-15 13:49:02 -06:00
bb21af7694
Adds exception handling in TCPListener.listen()
2025-05-15 13:49:02 -06:00
e9674d2bca
refractored Peer_Info to PeerInfo as imports
2025-05-09 17:31:15 -06:00
d55c57769f
Refactor: changed PeerInfo to Peer_Info in autonat.proto to avoid conflicts
2025-05-09 17:31:15 -06:00
1bed3304c7
fixed autonat file for pre-commit hook issues
2025-05-09 17:31:15 -06:00
86dce72ae0
fix: regenerate protobuf files to match runtime version
2025-05-09 17:31:15 -06:00
1730999e38
fixed pre commit hook issues in autonat
2025-05-09 17:31:15 -06:00
9655c88788
feat/561-added autonat service
2025-05-09 17:31:15 -06:00
4c02c4ea02
doc: add TODO for limit concurrency
2025-05-01 09:14:46 -06:00
4ad6975ef1
feat: push identify-push info in pararrel
2025-05-01 09:14:46 -06:00
66707364a7
doc: adding identify push protocol examples and doc
2025-05-01 09:14:46 -06:00
cef73519d3
feat: identify-push protocol. initial release
2025-05-01 09:14:46 -06:00
e0a08c9a2b
fix: test_timed_cache.py::test_readding_after_expiry
2025-04-20 17:11:29 +02:00
3bdbde57c7
feat: Add Windows compatibility using coincurve
2025-03-27 15:49:30 -06:00
4514e86ee4
move pubsub testing tools into tests/utils
2025-03-27 14:21:45 -06:00
24b2704d8c
move factories to tests/utils/factories
2025-03-27 14:21:45 -06:00
604a447287
feat: add identify protocol example
2025-03-24 17:55:16 -06:00
9350caa65c
feat: Add observed addresses of remote peer using get_remote_address
2025-03-24 08:02:21 -06:00
fabf2cefc4
feat: implement get_remote_address via delegation pattern
2025-03-24 08:02:21 -06:00
798229cd3a
feat: add observed_addr to identify protocol
2025-03-24 08:02:21 -06:00
bd8bd953ec
feat: add agent version to identify protocol and improved tests
2025-03-24 08:02:21 -06:00
df72979606
moved factories to tests
2025-03-24 07:59:35 -06:00
ddf68ee4e0
rebuild protobufs with protoc v30.1
2025-03-23 16:49:19 -06:00
b2a6294cfa
feat(host): add get_live_peers() to track connection state
2025-03-23 15:01:18 -06:00
bef8a82a52
fixed lint
2025-03-17 09:27:13 -06:00
3c01c03e4e
incorporated import changes as suggested
2025-03-17 09:27:13 -06:00
c86f3d0467
added dedicated test file and moved timed_cache to tools
2025-03-17 09:27:13 -06:00
e5f3e88134
added : timed_cache sub-module
2025-03-17 09:27:13 -06:00
0fa8711ca7
updated : seen message map type to bool from int
2025-03-17 09:27:13 -06:00
ea85067beb
check other cases and add test_rsa.py
2025-03-16 07:02:53 -06:00
e150d3153a
rufuse large RSA keys
2025-03-16 07:02:53 -06:00
3b187348ff
docs: add Sphinx-style docstrings in abc.py
2025-03-13 19:59:04 -06:00
d7eab27564
refactored and moved all interfaces to abc.py ( #504 )
...
* refactored : host_interface
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* refactored : network_interface
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* refactored : notifee_interface
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* refactored : net_connection_interface
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* refactored: raw_connection_interface, secure_conn_interface and stream_muxer abc.py
* refactored: addrbook_interface
* refactored :peerdata_interface
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* refactored :peermetadata_interface
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* refactored :multiselect_client_interface
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* refactored :multiselect_communicator_interface
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* refactored :multiselect_muxer_interface
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* refactored :interfaces
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* refactored :security_transport_interface
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* refactored :listener_interface
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* moved all interfaces and typing files
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
* fixed documentation and moved pubsub abc.py
Co-authored-by: Khwahish Patel <khwahish.p1@ahduni.edu.in >
* added exclude-members in custom_types docs
* added : newsfragment for moving all interfaces to libp2p.abc
---------
Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com >
Co-authored-by: Mystical <125946525+mystical-prog@users.noreply.github.com >
2025-02-21 16:01:45 -07:00
e7a9ee78a8
rename typing.py to custom_types.py for clarity
2025-02-02 07:18:52 -07:00
8787613e91
run lint with pyupgrade at py39-plus
2025-01-25 15:48:39 -07:00
e0814c9860
move interop tests tools into tests folder
2025-01-25 15:28:32 -07:00
33332d7106
sync handle_rpc docstring
2024-12-03 14:00:18 -07:00
f156668c1b
fixed doc comments in pubsub.abc
2024-12-03 14:00:18 -07:00
f957e310d6
refactored add_addrs in peerdata and added test_peerdata.py
2024-11-24 14:39:29 -07:00
17575f4a38
added test for connected peers
2024-11-21 11:51:19 -07:00
847dfa6577
added getter for connected peers
2024-11-21 11:51:19 -07:00
e768682ab9
reject messages claiming to be from ourselves but not locally published
2024-11-15 15:16:19 +07:00
25b35dee1a
fixed lint
2024-10-29 14:05:01 -06:00
cd810d26c2
added PingService
2024-10-29 14:05:01 -06:00
125df142f6
bump protobufs dep to >= 5.27.2 and rebuild protobufs definitions with protoc 27.2
2024-07-04 17:04:06 -06:00
c5cc0ee969
run mypy locally, bump mypy to 1.10.0, fix new errors
2024-07-04 13:19:00 -06:00
a3f8db3ecd
async-exit-stack was for pre-py37, just import from contextlib now
2024-05-27 12:40:23 -06:00
d9b92635c1
drop async-service dep and copy relevant code into a local async_service
...
tool, updated for modern handling of ExceptionGroup
2024-05-27 12:14:36 -06:00