-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Writeable IPNS #841
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
Writeable IPNS #841
Conversation
5a89d44
to
b36438c
Compare
666b906
to
3d27b80
Compare
22dc275
to
5b71881
Compare
} | ||
if n.IpnsFs != nil { | ||
addCloser(n.IpnsFs) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can just call
addCloser(n.Blocks)
addCloser(n.IpnsFs)
all it does is check for nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope: #855
@@ -86,7 +91,7 @@ func (db *DagBuilderHelper) FillNodeLayer(node *UnixfsNode) error { | |||
|
|||
// while we have room AND we're not done | |||
for node.NumChildren() < db.maxlinks && !db.Done() { | |||
child := NewUnixfsNode() | |||
child := NewUnixfsBlock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prep PR?
I think the TrickleDAG algo is very error prone-- lots of special casing and edge casing-- can the code be simpler? more expressive? more functions may help. |
@@ -0,0 +1,340 @@ | |||
package ipnsfs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so ipnsfs
is a pkg sort of like unixfs
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i cant check for correctness until i understand more all the things this package is supposed to handle. maybe write a package doc?
Major note: there are many different PRs in here:
It would be really useful to examine, test, + merge each in isolation, let's split them. |
👍 on splitting up into multiple PRs |
Dont CR this if you dont have lots of free time. Its just up here for regression tests