We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b3e3cd commit be32843Copy full SHA for be32843
core/state/state_object.go
@@ -304,10 +304,9 @@ func (s *stateObject) finalise() {
304
// loading or updating of the trie, an error will be returned. Furthermore,
305
// this function will return the mutated storage trie, or nil if there is no
306
// storage change at all.
307
+//
308
+// It assumes all the dirty storage slots have been finalized before.
309
func (s *stateObject) updateTrie() (Trie, error) {
- // Make sure all dirty slots are finalized into the pending storage area
- s.finalise()
310
-
311
// Short circuit if nothing changed, don't bother with hashing anything
312
if len(s.pendingStorage) == 0 {
313
return s.trie, nil
0 commit comments