From 21f97521aad1a067f9e1c17745b20eb6143ce3b8 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Thu, 30 May 2024 15:53:34 +0800 Subject: [PATCH] core/state: remove outdated function description --- core/state/statedb.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 9245826976..1372791af6 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -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. -// It could potentially be terminated if the storage size is excessively large, -// potentially leading to an out-of-memory panic. The function will make an attempt -// to utilize an efficient strategy if the associated state snapshot is reachable; -// otherwise, it will resort to a less-efficient approach. +// The function will make an attempt to utilize an efficient strategy if the +// associated state snapshot is reachable; 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) { var ( start = time.Now()