Skip to content

Commit

Permalink
fix: increase providers validity based on spec
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Nov 4, 2024
1 parent 04908d9 commit 03a4117
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/kad-dht/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export const MAX_RECORD_AGE = 36 * hour

export const PROTOCOL = '/ipfs/kad/1.0.0'

export const PROVIDERS_VALIDITY = 24 * hour
/**
* @see https://github.com/libp2p/specs/blob/master/kad-dht/README.md#content-provider-advertisement-and-discovery
*/
export const PROVIDERS_VALIDITY = 48 * hour

export const PROVIDERS_CLEANUP_INTERVAL = hour

Expand Down

0 comments on commit 03a4117

Please sign in to comment.