-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
block put --pin #5969
block put --pin #5969
Conversation
License: MIT Signed-off-by: Łukasz Magiera <[email protected]>
@magik6k could I get some background info on why this change? Is this default false for backwards compatibility? Should we consider adding a pin option and default it to true for all operations that add data to IPFS? Including for example |
go-ipfs-http-client implements DAGService using Calls to this adder automatically pin related nodes, and because go-ipfs-http-client adds nodes through block calls, this is also where pinning needs to happen (because we need to hold a pinning lock)
Defaulting to false is mostly for backwards compatibility (users may not be aware that adding objects this way pins them, and currently our pinning system isn't happy about many small pins)
That would be nice for consistency, but I feel like there should be a better way
Current pinning system really struggles with many individual pins, I'd say not before we get a more scalable pinning system.
In go-ipfs |
Waiting on a final signoff by @alanshaw. |
Needed in ipfs/go-ipfs-http-client#1