Skip to content

Commit fb43c86

Browse files
provide clarifications
1 parent 51690fc commit fb43c86

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/routing/kad-dht.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,17 +405,18 @@ CID.
405405

406406
Once the `k` closest DHT Servers are found, the node sends each of them an
407407
`ADD_PROVIDER` RPC, using the same `key` and setting its own Peer ID as
408-
`providerPeers`.
408+
`providerPeers`. Providers MUST indicate their listen multiaddresses to be
409+
cached and served with the provider record.
409410

410411
The DHT Servers MUST make 2 checks before adding the provided `record` to their
411412
datastore:
412413
1. Verify that `key` is set, and doesn't exceed `80` bytes in size
413414
2. Discard `providerPeers` whose Peer ID is not matching the sender's Peer ID
414415

415416
Upon successful verification, the DHT Server stores the Provider Record in its
416-
datastore, and responds by echoing the request to confirm success. If
417-
verification fails, the server MUST close the stream without sending a
418-
response.
417+
datastore, and caches the provided public multiaddresses. It responds by
418+
echoing the request to confirm success. If verification fails, the server MUST
419+
close the stream without sending a response.
419420

420421
#### Provide Validity
421422

0 commit comments

Comments
 (0)