Alexandru Vasile

Results 69 issues of Alexandru Vasile

Substrate presents many rejected connections, especially for the `sync` protocol. The metrics are configured [here](https://github.com/paritytech/polkadot-sdk/blob/15c056be52d9372efc457b9aa82397a47ef73505/substrate/client/network/src/litep2p/shim/request_response/mod.rs#L375) in substrate. ![Screenshot 2024-07-30 at 15 17 25](https://github.com/user-attachments/assets/27bf0ac1-ebab-4cf0-9021-76624514aae4) Running libp2p side by side with litep2p,...

enhancement

The address store keeps track of the addresses of peers, sorted internally by connection scores. Once an address is inserted into the store, its score can never change. We are...

enhancement

Expose the following info for reporting back metrics: - kademlia total number of records store in the memory store - kademlia total number of bytes stored in the memory store...

enhancement

Currently, Kademlia queries (find_node / get_records) run until completion, or until they cannot make progress. Add a configurable timeout for the kademlia queries. It might benefit some users (including substrate)...

enhancement

We send a `[0u8; 32]` payload to the peer, then we read the next payload sent by the peer. After that, we could verify that what we sent (ping) was...

The ping protocol reports currently the peer queried and the RTT: https://github.com/paritytech/litep2p/blob/467a457c78785819e91ecdb7a5a926b7cd1c3d25/src/protocol/libp2p/ping/mod.rs#L50-L59 Extend the event to support ping failures: https://github.com/paritytech/litep2p/blob/467a457c78785819e91ecdb7a5a926b7cd1c3d25/src/protocol/libp2p/ping/mod.rs#L220

This is currently hardcoded to 5 seconds, let's make it configurable

https://github.com/paritytech/litep2p/blob/467a457c78785819e91ecdb7a5a926b7cd1c3d25/src/protocol/libp2p/kademlia/mod.rs#L681

https://github.com/paritytech/litep2p/blob/467a457c78785819e91ecdb7a5a926b7cd1c3d25/src/error.rs#L42-L121

https://github.com/paritytech/litep2p/blob/467a457c78785819e91ecdb7a5a926b7cd1c3d25/src/multistream_select/protocol.rs#L134 https://github.com/paritytech/litep2p/blob/467a457c78785819e91ecdb7a5a926b7cd1c3d25/src/multistream_select/protocol.rs#L175