Commit d1dd0be3 authored by Jeromy's avatar Jeromy

lots of logging

parent 7e576d41
package blocks package blocks
import ( import (
"fmt"
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash" mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
u "github.com/jbenet/go-ipfs/util" u "github.com/jbenet/go-ipfs/util"
) )
...@@ -20,3 +22,7 @@ func NewBlock(data []byte) *Block { ...@@ -20,3 +22,7 @@ func NewBlock(data []byte) *Block {
func (b *Block) Key() u.Key { func (b *Block) Key() u.Key {
return u.Key(b.Multihash) return u.Key(b.Multihash)
} }
func (b *Block) String() string {
return fmt.Sprintf("[Block %s]", b.Key())
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment