diff --git a/trie/trienode/node.go b/trie/trienode/node.go index 228a64f04c..0aeccebc81 100644 --- a/trie/trienode/node.go +++ b/trie/trienode/node.go @@ -40,7 +40,7 @@ func (n *Node) Size() int { // IsDeleted returns the indicator if the node is marked as deleted. func (n *Node) IsDeleted() bool { - return len(n.Blob) == 0 + return n.Blob == nil } // New constructs a node with provided node information.