Skip to content

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

Closed
wants to merge 20 commits into from
Closed

Writeable IPNS #841

wants to merge 20 commits into from

Conversation

whyrusleeping
Copy link
Member

Dont CR this if you dont have lots of free time. Its just up here for regression tests

@whyrusleeping whyrusleeping added the status/in-progress In progress label Mar 1, 2015
@whyrusleeping whyrusleeping force-pushed the feat/ipns-again branch 3 times, most recently from 5a89d44 to b36438c Compare March 4, 2015 21:23
@whyrusleeping whyrusleeping changed the title [WIP] Writeable IPNS Writeable IPNS Mar 4, 2015
}
if n.IpnsFs != nil {
addCloser(n.IpnsFs)
}
Copy link
Member

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

Copy link
Member Author

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()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prep PR?

@jbenet
Copy link
Member

jbenet commented Mar 6, 2015

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
Copy link
Member

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?

Copy link
Member

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?

@jbenet
Copy link
Member

jbenet commented Mar 6, 2015

Major note: there are many different PRs in here:

  • unixfs offset fix
  • the mutable FS thing (most of the ipnsfs pkg)
  • ipns mount implementation
  • importer raw node type? (why is this needed)
  • trickle dag
  • dag modifier move

It would be really useful to examine, test, + merge each in isolation, let's split them.

@cryptix
Copy link
Contributor

cryptix commented Mar 6, 2015

👍 on splitting up into multiple PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants