1. 22 Sep, 2014 5 commits
    • Brian Tiger Chow's avatar
    • Brian Tiger Chow's avatar
      feat(bitswap) expose ability to toggle "niceness" · cd0cb0b7
      Brian Tiger Chow authored
      true -> always send to peer
      
      false -> use ledger-based strategy described in IPFS paper draft 3
      cd0cb0b7
    • Brian Tiger Chow's avatar
      test(bitswap:testnet) · 791637a5
      Brian Tiger Chow authored
      misc:
      * test network client getting more than max
      * test for find providers
      * rename factory method
      * local network
      * misc test improvements
      * test bitswap get block timeout
      * test provider exists but cannot connect to peer
      * test sending a message async over local network
      791637a5
    • Brian Tiger Chow's avatar
      test(exch:bs:strategy) test accounting consistency · d2ea3d25
      Brian Tiger Chow authored
      > Why expose num bytes sent and received?
      
          Makes it easy to test consistency of the ledgers
      
      > Got a better reason?
      
          Makes it possible to expose metrics to the people-facing API
      d2ea3d25
    • Brian Tiger Chow's avatar
      refac(exchange) bitswap -> exchange/bitswap · 7cb2f524
      Brian Tiger Chow authored
      Move go-ipfs/bitswap package to go-ipfs/exchange/bitswap
      
      * Delineates the difference between the generic exchange interface and
        implementations (eg. BitSwap protocol)
      
        Thus, the bitswap protocol can be refined without having to overthink
        how future exchanges will work. Aspects common to BitSwap and other
        exchanges can be extracted out to the exchange package in piecemeal.
      
        Future exchange implementations can be placed in sibling packages next
        to exchange/bitswap. (eg. exchange/multilateral)
      7cb2f524