core/state: remove outdated function description

This commit is contained in:
Gary Rong 2024-05-30 15:53:34 +08:00
parent 7b1ff9b816
commit 21f97521aa

View file

@ -979,10 +979,9 @@ func (s *StateDB) slowDeleteStorage(addr common.Address, addrHash common.Hash, r
} }
// deleteStorage is designed to delete the storage trie of a designated account. // deleteStorage is designed to delete the storage trie of a designated account.
// It could potentially be terminated if the storage size is excessively large, // The function will make an attempt to utilize an efficient strategy if the
// potentially leading to an out-of-memory panic. The function will make an attempt // associated state snapshot is reachable; otherwise, it will resort to a less
// to utilize an efficient strategy if the associated state snapshot is reachable; // efficient approach.
// otherwise, it will resort to a less-efficient approach.
func (s *StateDB) deleteStorage(addr common.Address, addrHash common.Hash, root common.Hash) (map[common.Hash][]byte, *trienode.NodeSet, error) { func (s *StateDB) deleteStorage(addr common.Address, addrHash common.Hash, root common.Hash) (map[common.Hash][]byte, *trienode.NodeSet, error) {
var ( var (
start = time.Now() start = time.Now()