Ignore global cache for patched accounts (#9752)
* Ignore global cache for patched accounts * Rollback patched account flag * Store root in checkpoint storage
This commit is contained in:
committed by
André Silva
parent
1c1cd8b164
commit
a3bd355b16
@@ -204,6 +204,10 @@ impl Account {
|
||||
self.code_filth = Filth::Dirty;
|
||||
self.storage_cache = Self::empty_storage_cache();
|
||||
self.storage_changes = storage;
|
||||
if self.storage_root != KECCAK_NULL_RLP {
|
||||
self.original_storage_cache = Some((self.storage_root, Self::empty_storage_cache()));
|
||||
}
|
||||
self.storage_root = KECCAK_NULL_RLP;
|
||||
}
|
||||
|
||||
/// Set (and cache) the contents of the trie's storage at `key` to `value`.
|
||||
|
||||
Reference in New Issue
Block a user