From bcdf7a1cb7dc3c06a400ea5bdbd998d98a8cd3ef Mon Sep 17 00:00:00 2001 From: andyzhang2023 Date: Thu, 17 Oct 2024 15:54:47 +0800 Subject: [PATCH] fix comments --- core/state/pevm_statedb.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/state/pevm_statedb.go b/core/state/pevm_statedb.go index 569aaab3b..f511b0c65 100644 --- a/core/state/pevm_statedb.go +++ b/core/state/pevm_statedb.go @@ -662,13 +662,14 @@ func (pst *UncommittedDB) getDeletedObjectWithState(addr common.Address, maindb return o } // first, load code from maindb and record the previous state - // we can't use getStateObject() here , because it will be used for conflict check. + // we can't use getStateObject() here , because the state of deletedObj will be used for conflict check. deletedObj := pst.maindb.getDeletedStateObject(addr) if deletedObj != nil { + // record the previous state for conflict check. pst.reads.recordKVOnce(addr, hash, deletedObj.GetState(hash)) } - // now return the true state into cache + // now write the true state into cache var value = common.Hash{} if deletedObj != nil && !deletedObj.deleted { value = deletedObj.GetState(hash)