From c2fcc27132388e678b5579e14b1c53b67d07fbce Mon Sep 17 00:00:00 2001 From: radik878 Date: Mon, 15 Sep 2025 05:45:50 +0300 Subject: [PATCH] core/rawdb: fix misleading comment in HasTrieNode (#32599) --- core/rawdb/accessors_trie.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rawdb/accessors_trie.go b/core/rawdb/accessors_trie.go index e154ab527b..7d8b266c15 100644 --- a/core/rawdb/accessors_trie.go +++ b/core/rawdb/accessors_trie.go @@ -150,7 +150,7 @@ func HasTrieNode(db ethdb.KeyValueReader, owner common.Hash, path []byte, hash c if len(blob) == 0 { return false } - return crypto.Keccak256Hash(blob) == hash // exists but not match + return crypto.Keccak256Hash(blob) == hash // exist and match default: panic(fmt.Sprintf("Unknown scheme %v", scheme)) } @@ -173,7 +173,7 @@ func ReadTrieNode(db ethdb.KeyValueReader, owner common.Hash, path []byte, hash return nil } if crypto.Keccak256Hash(blob) != hash { - return nil // exists but not match + return nil // exist but not match } return blob default: