1. 22 Sep, 2014 4 commits
    • 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
      fix(bitswap) compiler errors · ff4b979d
      Brian Tiger Chow authored
      didn't run tests after the refactor. apologies.
      ff4b979d
    • 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