diff --git a/core/util/mpt_pnodedb.go b/core/util/mpt_pnodedb.go index b15e1d7..ef0efa9 100644 --- a/core/util/mpt_pnodedb.go +++ b/core/util/mpt_pnodedb.go @@ -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())))