fe3f7adc1b
fix typos
2025-08-26 12:49:51 +05:30
91bee9df89
Moved env_to_send_in_RPC function to libp2p/peer/peerstore.py
2025-08-26 12:49:51 +05:30
cea1985c5c
add reissuing mechanism of records if addrs dont change
2025-08-26 12:49:51 +05:30
d1792588f9
added tests for signed-peee-record transfer in kad-dht
2025-08-26 12:49:51 +05:30
53db128f69
fix typos
2025-08-26 12:49:51 +05:30
eb3121b818
remove completed TODO task comments
2025-08-10 11:28:11 +05:30
16445714f7
overwrite old_addr with new_addrs in consume_peer_record
2025-07-26 22:38:28 +05:30
8b8b051885
batch operations for consume_peer_record
2025-07-26 22:38:28 +05:30
07c8d4cd1f
added periodic cleanup task
2025-07-26 22:38:28 +05:30
09e6feea8e
merge new addresses with existing ones, in consume_peer_record
2025-07-26 22:38:28 +05:30
601a8a3ef0
enforce_peer_record_limit
2025-07-26 22:38:28 +05:30
c2b1738cd9
fix sphinx/docutils bugs
2025-07-26 22:38:28 +05:30
aab2a0b603
Completed: CertifiedAddrBook interface with related tests
2025-07-26 22:38:28 +05:30
dd14aad47c
Add tests for discovery methods in circuit_relay_v2 ( #750 )
...
* Add test for direct_connection_relay_discovery
* Add test for mux_method_relay_discovery
* Fix newsfragments
2025-07-11 14:53:27 -06:00
d1c31483bd
Implemented addr_stream in the peerstore
2025-07-06 14:45:42 +05:30
faeacf686a
fix typos
2025-07-06 14:45:42 +05:30
3d369bc142
Proto-Book: added tests
2025-07-06 14:45:42 +05:30
5de458482c
refactor after rebase
2025-07-06 14:45:42 +05:30
f3d8cbf968
feat: Matching go-libp2p PeerStore implementation
2025-07-06 14:45:42 +05:30
22d93b39ae
Add ttl for peer data expiration ( #655 )
...
* Add ttl and last_identified to peerdata
* Add test for ttl
Signed-off-by: sukhman <sukhmansinghsaluja@gmail.com >
* Fix lint and add newsfragments
Signed-off-by: sukhman <sukhmansinghsaluja@gmail.com >
* Fix failing ci
Signed-off-by: sukhman <sukhmansinghsaluja@gmail.com >
* fix ttl time from 600 to 120
Signed-off-by: sukhman <sukhmansinghsaluja@gmail.com >
* fix test ttl timeout and lint errors
Signed-off-by: sukhman <sukhmansinghsaluja@gmail.com >
* Fix docstrings
Signed-off-by: sukhman <sukhmansinghsaluja@gmail.com >
* rebase main
* remove print statement
---------
Signed-off-by: sukhman <sukhmansinghsaluja@gmail.com >
Co-authored-by: pacrob <5199899+pacrob@users.noreply.github.com >
2025-06-09 12:42:59 -06:00
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
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
8787613e91
run lint with pyupgrade at py39-plus
2025-01-25 15:48:39 -07:00
94483714a3
run lint and fix errors, except mypy
2024-02-19 16:05:58 -07:00
b1248ff315
enforced f-strings everywhere, %s on logging
...
extended _multiaddr_from_socket to support UDP and IPv6 automatically
changed TCPListener to use _ip4_or_6_from_multiaddr to get host, and not ip4 only
enforced `from error` everywhere with raises
added call braces to exceptions
2019-12-19 17:31:18 +01:00
9f3f2c53da
Apply PR feedback:
...
use defaultdict for peer data map
2019-11-26 16:18:15 +08:00
fab27b0357
Fix lint
2019-11-26 12:35:50 +08:00
ffa73f5649
Check if pubkey matches peer ID before add
2019-11-26 12:33:55 +08:00
0bfbdf7fab
Move keypair into PeerData
2019-11-26 12:27:59 +08:00
828ae69c66
Apply PR feedback: add_key_pair
2019-11-26 11:52:31 +08:00
566e4c080d
Fix lint
2019-11-25 17:32:53 +08:00
8b4022328d
Update peer store interface
2019-11-25 17:16:47 +08:00
144d93a023
Add pubkey/privkey info to PeerStore
2019-11-24 18:04:00 +08:00
9837f30698
Rename peer_map to peer_data_map
2019-11-24 16:52:46 +08:00
ded3792924
Merge pull request #331 from dmuhs/fix/docs-format
...
Add automatic docstring formatting
2019-10-28 09:39:52 -06:00
bafdd8512d
Enforce pre-summary newline in docstrings
2019-10-24 20:10:45 +02:00
eef505f2d9
Add automatic docstring formatter and apply
2019-10-24 08:41:10 +02:00
211e2f6dd0
Catch PeerDataError in PeerStore.get
2019-10-17 15:52:57 +08:00
dfd9ebdc5e
Change PeerInfo to remove dep on PeerData
2019-09-02 14:30:27 +08:00
0ae9840928
Run black over repo
2019-07-31 15:00:12 -07:00
e53727d301
Apply PR feedback: fix type hints
2019-07-30 16:28:25 +08:00
a4a0d79f6d
Improve import layout
2019-07-30 16:27:29 +08:00
f2de986c74
Add type hints to peer folder
2019-07-30 16:24:51 +08:00
ce6ddb27a9
Migrate to new project structure.
2019-01-09 21:38:56 +03:00