Skip to content

Commit be32843

Browse files
authored
core/state: remove useless operation (#29769)
1 parent 5b3e3cd commit be32843

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/state/state_object.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,9 @@ func (s *stateObject) finalise() {
304304
// loading or updating of the trie, an error will be returned. Furthermore,
305305
// this function will return the mutated storage trie, or nil if there is no
306306
// storage change at all.
307+
//
308+
// It assumes all the dirty storage slots have been finalized before.
307309
func (s *stateObject) updateTrie() (Trie, error) {
308-
// Make sure all dirty slots are finalized into the pending storage area
309-
s.finalise()
310-
311310
// Short circuit if nothing changed, don't bother with hashing anything
312311
if len(s.pendingStorage) == 0 {
313312
return s.trie, nil

0 commit comments

Comments
 (0)