1. 04 Jul, 2017 1 commit
  2. 29 Jun, 2017 1 commit
  3. 26 Apr, 2017 1 commit
    • dgrisham's avatar
      bug fix: `BytesSent` in peers' ledgers now updates · bc9342bf
      dgrisham authored
      When sending data to another user, the number of bytes sent to that user (saved
      by the corresponding Bitswap ledger) was not updated (it was always 0). This
      also meant that the debt ratio was also always 0.
      
      The function that updates the `BytesSent` value in the ledger, `MessageSent()`,
      was already implemented, however it was not called when the peer was sent data.
      To fix this, a call to `MessageSent()` was made in the `taskWorker()` function,
      which is where both the message in question and the Bitswap engine were
      available to make the call. `MessageSent()` requires the peer's ID and
      `BitSwapMessage` as its arguments, the latter of which had to be created by
      making a new `BitSwapMessage`, then the block being sent was added to the new
      message.
      
      Note that, similar to the analagous call to `MessageReceived()`, records *all*
      of the bytes sent to a particular user. At some point, both of these should be
      updated to only record the numbers of *useful* bytes sent and received between
      peers.
      
      License: MIT
      Signed-off-by: default avatarDavid Grisham <dgrisham@mines.edu>
      bc9342bf
  4. 20 Apr, 2017 1 commit
  5. 06 Mar, 2017 2 commits
  6. 12 Feb, 2017 1 commit
  7. 29 Nov, 2016 1 commit
  8. 22 Nov, 2016 1 commit
  9. 16 Nov, 2016 1 commit
  10. 25 Oct, 2016 1 commit
  11. 12 Oct, 2016 1 commit
    • Jeromy's avatar
      merkledag: change 'Node' to be an interface · abfdac9a
      Jeromy authored
      Also change existing 'Node' type to 'ProtoNode' and use that most
      everywhere for now. As we move forward with the integration we will try
      and use the Node interface in more places that we're currently using
      ProtoNode.
      
      License: MIT
      Signed-off-by: default avatarJeromy <why@ipfs.io>
      abfdac9a
  12. 10 Oct, 2016 1 commit
    • Jeromy's avatar
      bitswap: protocol extension to handle cids · 591491b1
      Jeromy authored
      This change adds the /ipfs/bitswap/1.1.0 protocol. The new protocol
      adds a 'payload' field to the protobuf message and deprecates the
      existing 'blocks' field. The 'payload' field is an array of pairs of cid
      prefixes and block data. The cid prefixes are used to ensure the correct
      codecs and hash functions are used to handle the block on the receiving
      end.
      
      License: MIT
      Signed-off-by: default avatarJeromy <why@ipfs.io>
      591491b1
  13. 08 Oct, 2016 1 commit
  14. 06 Oct, 2016 1 commit
  15. 29 Sep, 2016 1 commit
  16. 26 Sep, 2016 1 commit
  17. 10 Sep, 2016 1 commit
  18. 09 Sep, 2016 1 commit
  19. 06 Sep, 2016 1 commit
  20. 04 Sep, 2016 1 commit
  21. 03 Sep, 2016 1 commit
  22. 02 Sep, 2016 1 commit
  23. 26 Aug, 2016 1 commit
  24. 24 Aug, 2016 1 commit
  25. 04 Aug, 2016 1 commit
    • Jeromy's avatar
      bitswap: fix a minor data race · 3fbf157a
      Jeromy authored
      race detector picked up a minor race condition, Since loop iteration
      reuses the same local variable, its not safe to take its address and use
      it concurrently. The fix is to rebind the variable into a controlled
      scope (creating a new variable) and taking the address of that to pass
      outwards.
      
      License: MIT
      Signed-off-by: default avatarJeromy <why@ipfs.io>
      3fbf157a
  26. 24 Jun, 2016 1 commit
  27. 09 Jun, 2016 1 commit
  28. 01 Jun, 2016 1 commit
  29. 17 May, 2016 1 commit
  30. 10 May, 2016 1 commit
  31. 05 May, 2016 1 commit
  32. 04 May, 2016 1 commit
  33. 27 Apr, 2016 1 commit
  34. 13 Feb, 2016 1 commit
  35. 30 Jan, 2016 2 commits
  36. 12 Jan, 2016 3 commits