fix: align implicit default ttl with specs#749
Merged
achingbrain merged 1 commit intomainfrom Mar 4, 2025
Merged
Conversation
lowering TTL to 5m due to ipfs/specs#492 lifetime is validity of signature, and that should be fine up to 48h, to match DHT expiration window
6c36281 to
693e3b1
Compare
2color
approved these changes
Feb 27, 2025
achingbrain
reviewed
Feb 27, 2025
|
|
||
| /** | ||
| * The TTL of the record in ms (default: 1 hour) | ||
| * The TTL of the record in ms (default: 5 minutes) |
Member
There was a problem hiding this comment.
Maybe I'm missing something but the suggested default is one hour?
Member
There was a problem hiding this comment.
Aha! Like it says in the issue description..
achingbrain
approved these changes
Mar 4, 2025
Merged
2color
added a commit
that referenced
this pull request
Mar 13, 2025
* origin/main: chore: use peer id parsing function from libp2p (#762) feat: add republish signed ipns records (#745) fix: use bytestream methods to add byte streams (#758) chore: bump codecov/codecov-action from 5.3.1 to 5.4.0 (#752) feat: allow modifying trustless-gateway fetch (#751) fix: align implicit default ttl with specs (#749) docs: add spell checker to ci (#743) chore: Update FUNDING.json for Optimism RPF (#746)
lidel
added a commit
to ipfs/js-ipns
that referenced
this pull request
Mar 18, 2025
Same rationale as ipfs/helia#749
lidel
added a commit
to ipfs/js-ipns
that referenced
this pull request
Mar 18, 2025
Same rationale as ipfs/helia#749
achingbrain
pushed a commit
to ipfs/js-ipns
that referenced
this pull request
Mar 18, 2025
This PR is changing implicit default TTL of IPNS Record produced by this library from 1h to 5m. Same rationale as ipfs/kubo#10718 and ipfs/helia#749. This library has its own default TTL, which is separate from one we already updated ipfs/helia#749. Making this change so we have the same default everywhere. Historical notes - Before April 2024 the IPNS Record TTL was not set (0) in this library - Since #308 the `1h` default produced by this library started causing stale cache issues that end users often report as "ipns is slow (to update/propagate)". - We've changed default recommendation to 5m in ipfs/specs#492
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title
chore(ipns): align implicit default ttl with specs
Description
Notes & open questions
Change checklist