@@ -86,9 +86,6 @@ func (t *TransitionTrie) GetAccount(address common.Address) (*types.StateAccount
86
86
return nil , err
87
87
}
88
88
if data != nil {
89
- if t .overlay .db .HasStorageRootConversion (address ) {
90
- data .Root = t .overlay .db .StorageRootConversion (address )
91
- }
92
89
return data , nil
93
90
}
94
91
return t .base .GetAccount (address )
@@ -112,9 +109,9 @@ func (t *TransitionTrie) UpdateStorage(address common.Address, key []byte, value
112
109
113
110
// UpdateAccount abstract an account write to the trie.
114
111
func (t * TransitionTrie ) UpdateAccount (addr common.Address , account * types.StateAccount , codeLen int ) error {
115
- if account . Root != (common. Hash {}) && account . Root != types . EmptyRootHash {
116
- t . overlay . db . SetStorageRootConversion ( addr , account . Root )
117
- }
112
+ // NOTE: before the rebase, this was saving the state root, so that OpenStorageTrie
113
+ // could still work during a replay. This is no longer needed, as OpenStorageTrie
114
+ // only needs to know what the account trie does now.
118
115
return t .overlay .UpdateAccount (addr , account , codeLen )
119
116
}
120
117
@@ -195,3 +192,8 @@ func (t *TransitionTrie) Copy() *TransitionTrie {
195
192
func (t * TransitionTrie ) UpdateContractCode (addr common.Address , codeHash common.Hash , code []byte ) error {
196
193
return t .overlay .UpdateContractCode (addr , codeHash , code )
197
194
}
195
+
196
+ // Witness returns a set containing all trie nodes that have been accessed.
197
+ func (t * TransitionTrie ) Witness () map [string ]struct {} {
198
+ panic ("not implemented" )
199
+ }
0 commit comments