Skip to content

Commit 3dbd4f4

Browse files
committed
fix: align implicit default ttl with specs (1h→5m)
Same rationale as ipfs/helia#749
1 parent de2e786 commit 3dbd4f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type { CID } from 'multiformats/cid'
1111
import type { MultihashDigest } from 'multiformats/hashes/interface'
1212

1313
const log = logger('ipns')
14-
const DEFAULT_TTL_NS = 60 * 60 * 1e+9 // 1 Hour or 3600 Seconds
14+
const DEFAULT_TTL_NS = 5 * 60 * 1e+9 // 5 Minutes or 300 Seconds, as suggested by https://specs.ipfs.tech/ipns/ipns-record/#ttl-uint64
1515

1616
export const namespace = '/ipns/'
1717
export const namespaceLength = namespace.length

0 commit comments

Comments
 (0)