paritytech / litep2p

Peer-to-peer networking library
MIT License
68 stars 10 forks source link

kad: Implement `GET_PROVIDERS` command #167

Closed lexnv closed 1 month ago

lexnv commented 3 months ago

Implement the GET_PROVIDERS command:

This command is similar to GET_VALUE. One possible solution is to extend GetRecordContext to support two different messages: https://github.com/paritytech/litep2p/blob/a27d0072913be67cce904e2e8c465cc37ec5223a/src/protocol/libp2p/kademlia/query/get_record.rs#L83-L84

https://github.com/paritytech/litep2p/blob/a27d0072913be67cce904e2e8c465cc37ec5223a/src/protocol/libp2p/kademlia/query/get_record.rs#L117-L118

dmitry-markin commented 1 month ago

Superseded by https://github.com/paritytech/litep2p/issues/201 & https://github.com/paritytech/litep2p/issues/202.