1. 16 Jan, 2019 3 commits
    • Bamvor Zhang's avatar
      dag: remove `UnixfsNode` in Layout of trickledag · 6aa0d7fd
      Bamvor Zhang authored
      This patch is the part of trickledag work which is similar to the
      merkledag work in commit 474b77a2bdb1c ("importer: remove `UnixfsNode`
      from the balanced builder"). Two helper functions(fillTrickleRecFSNode
      and FillFSNodeLayer) is introduced temporarily for modifing the Layout
      functions. These two funtions will be removed when all the code of
      UnixfsNode is removed in trickledag.go.
      
      Test ipfs add and get commands to check whether get the same hash of
      file after the code changes.
      
      License: MIT
      Signed-off-by: default avatarBamvor Zhang <jian.zhang@ipfsbit.com>
      6aa0d7fd
    • Bamvor Zhang's avatar
      Docs: update balanced builder document · b56bc955
      Bamvor Zhang authored
      After fsNodeType in NewLeafNode is supported by commit 85897b3f89301
      ("dag: add fsNodeType in NewLeafNode and NewLeafDataNode"). Move
      comments in NewLeafNode to importer/balanced/builder.go to clarify
      why TFile is used by balanced builder as leaves.
      
      License: MIT
      Signed-off-by: default avatarBamvor Zhang <jian.zhang@ipfsbit.com>
      b56bc955
    • Bamvor Zhang's avatar
      dag: add fsNodeType in NewLeafNode and NewLeafDataNode · c7228b92
      Bamvor Zhang authored
      NewLeafNode and NewLeafDataNode is introduced in commit 474b77a2bdb1c
      ("importer: remove `UnixfsNode` from the balanced builder"). It is
      intended to return ipfs.Node instead of UnixfsNode. But it only
      support creating the TFile leaf node for merkledag.
      
      This commit add fsNodeType to above two functions and update the code
      in dagbuild.go. Further patches of trickledag will make use of them
      and pass TRaw to create leaf node.
      
      License: MIT
      Signed-off-by: default avatarBamvor Zhang <jian.zhang@ipfsbit.com>
      c7228b92
  2. 15 Jan, 2019 3 commits
  3. 09 Jan, 2019 1 commit
  4. 21 Dec, 2018 4 commits
  5. 18 Dec, 2018 2 commits
  6. 13 Dec, 2018 3 commits
  7. 07 Dec, 2018 1 commit
  8. 04 Dec, 2018 1 commit
  9. 28 Nov, 2018 1 commit
  10. 11 Nov, 2018 2 commits
  11. 09 Nov, 2018 1 commit
  12. 08 Nov, 2018 1 commit
  13. 03 Nov, 2018 2 commits
  14. 02 Nov, 2018 5 commits
  15. 01 Nov, 2018 1 commit
  16. 30 Oct, 2018 1 commit
  17. 29 Oct, 2018 8 commits