jbenet/go-ipfs — pull request #8 by toqueteos (2014-07-23 15:05:13+00:00)
Title: Fix #1 build errors + gofmt

Both `Ledgers` and `HaveList` should call `Multihash.HexString()` in order to set elements of maps because type Multihash has `[]byte` as underlying type (instead of struct) and can't be used as map key.

```go
type BitSwap struct {
Ledgers map[string]*Ledger
HaveList map[string]*blocks.Block
WantList []*multihash.Multihash
}
```