Skip to content

Commit

Permalink
lots of logging
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Oct 26, 2014
1 parent 7e576d4 commit d1dd0be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blocks.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package blocks

import (
"fmt"

mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
u "github.com/jbenet/go-ipfs/util"
)
Expand All @@ -20,3 +22,7 @@ func NewBlock(data []byte) *Block {
func (b *Block) Key() u.Key {
return u.Key(b.Multihash)
}

func (b *Block) String() string {
return fmt.Sprintf("[Block %s]", b.Key())
}

0 comments on commit d1dd0be

Please sign in to comment.