This commit is contained in:
nes77 2016-08-18 16:34:35 +00:00 committed by GitHub
commit c7aabf03a3

View file

@ -505,7 +505,7 @@ func (h *hasher) hash(n node, db DatabaseWriter, force bool) (node, node, error)
if err != nil { if err != nil {
return hashNode{}, n, err return hashNode{}, n, err
} }
// Cache the hash and RLP blob of the ndoe for later reuse // Cache the hash and RLP blob of the node for later reuse
if hash, ok := hashed.(hashNode); ok && !force { if hash, ok := hashed.(hashNode); ok && !force {
switch cached := cached.(type) { switch cached := cached.(type) {
case shortNode: case shortNode: