Skip to content

Commit cb9f133

Browse files
committed
Add recovery of proposalTree state
1 parent 2698a01 commit cb9f133

File tree

3 files changed

+160
-108
lines changed

3 files changed

+160
-108
lines changed

core/state/statedb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ func (s *StateDB) handleDestruction(nodes *trienode.MergedNodeSet) (map[common.A
10961096
// considerable time and storage deletion isn't supported in hash mode, thus
10971097
// preemptively avoiding unnecessary expenses.
10981098
incomplete := make(map[common.Address]struct{})
1099-
if s.db.TrieDB().Scheme() == rawdb.HashScheme {
1099+
if s.db.TrieDB().Scheme() != rawdb.PathScheme {
11001100
return incomplete, nil
11011101
}
11021102
for addr, prev := range s.stateObjectsDestruct {

0 commit comments

Comments
 (0)