diff --git a/merkledag.go b/merkledag.go index f0c93ad63d62..46b0c4089119 100644 --- a/merkledag.go +++ b/merkledag.go @@ -124,6 +124,7 @@ func (n *Node) Size() (uint64, error) { // Multihash hashes the encoded data of this node. func (n *Node) Multihash() (mh.Multihash, error) { + // Note: Encoded generates the hash and puts it in n.cached. _, err := n.Encoded(false) if err != nil { return nil, err