Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

idea: pin through ipns names #97

@jbenet

Description

@jbenet

(old idea. document cause i cannot find it elsewhere) pins on ipns names would pin the name and it's target. So re-targetting the name would orphan the previous content, for gc to free.

eg:

ipfs pin add [-r] /ipns/$name
# at this point, $name is pinned recursively. but say it points to nothing. 

ipfs name publish /ipns/$name /ipfs/$content1
# /ipfs/$content1 is pinned indirectly

ipfs name publish /ipns/$name /ipfs/$content2
# /ipfs/$content2 is pinned indirectly
# /ipfs/$content1 is no longer pinned indirectly

ipfs repo gc
# /ipfs/$content1 is freed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions