code: func (self *stateObject) updateRoot(db Database) {
  	self.updateTrie(db)
  
  	// Track the amount of time wasted on hashing the storge trie
  	if metrics.EnabledExpensive {
  		defer func(start time.Time) { self.db.StorageHashes += time.Since(start) }(time.Now())
  	}
  	self.data.Root = self.trie.Hash()
  }
docs: // UpdateRoot sets the trie root to the current root hash of