Closed lexnv closed 1 month ago
Implement the GET_PROVIDERS command:
GET_PROVIDERS
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
GET_VALUE
GetRecordContext
https://github.com/paritytech/litep2p/blob/a27d0072913be67cce904e2e8c465cc37ec5223a/src/protocol/libp2p/kademlia/query/get_record.rs#L117-L118
Superseded by https://github.com/paritytech/litep2p/issues/201 & https://github.com/paritytech/litep2p/issues/202.
Implement the
GET_PROVIDERS
command:This command is similar to
GET_VALUE
. One possible solution is to extendGetRecordContext
to support two different messages: https://github.com/paritytech/litep2p/blob/a27d0072913be67cce904e2e8c465cc37ec5223a/src/protocol/libp2p/kademlia/query/get_record.rs#L83-L84https://github.com/paritytech/litep2p/blob/a27d0072913be67cce904e2e8c465cc37ec5223a/src/protocol/libp2p/kademlia/query/get_record.rs#L117-L118