Commit 7fe2ad68 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

add plumbing output + logging

Fixes #157
Found #158
parent f7fa0f60
...@@ -124,6 +124,7 @@ func (n *Node) Size() (uint64, error) { ...@@ -124,6 +124,7 @@ func (n *Node) Size() (uint64, error) {
// Multihash hashes the encoded data of this node. // Multihash hashes the encoded data of this node.
func (n *Node) Multihash() (mh.Multihash, error) { func (n *Node) Multihash() (mh.Multihash, error) {
// Note: Encoded generates the hash and puts it in n.cached.
_, err := n.Encoded(false) _, err := n.Encoded(false)
if err != nil { if err != nil {
return nil, err return nil, err
......
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