Skip to content

Commit

Permalink
removed annoying log on lfb save
Browse files Browse the repository at this point in the history
  • Loading branch information
dabasov committed Nov 8, 2023
1 parent 77baa17 commit 3e2bad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/util/mpt_pnodedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (pndb *PNodeDB) GetNode(key Key) (Node, error) {
func (pndb *PNodeDB) PutNode(key Key, node Node) error {
nd := node.Clone()
data := nd.Encode()
if !bytes.Equal(key, nd.GetHashBytes()) {
if DebugMPTNode && !bytes.Equal(key, nd.GetHashBytes()) {
logging.Logger.Error("put node key not match",
zap.String("key", ToHex(key)),
zap.String("node", ToHex(nd.GetHashBytes())))
Expand Down

0 comments on commit 3e2bad6

Please sign in to comment.