Skip to content

Commit 720d753

Browse files
committed
- remove clear during commit
- copy storageKeyHashLookup when cloning accumulator Signed-off-by: Karim Taam <karim.t2am@gmail.com>
1 parent b8e978e commit 720d753

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/diffbased/common/worldview/accumulator/DiffBasedWorldStateUpdateAccumulator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ public void importStateChangesFromSource(
153153
});
154154
});
155155
storageToClear.addAll(source.storageToClear);
156+
storageKeyHashLookup.putAll(source.storageKeyHashLookup);
156157

157158
this.isAccumulatorStateChanged = true;
158159
}
@@ -211,6 +212,7 @@ public void importPriorStateFromSource(
211212
uInt256DiffBasedValue.getPrior(), uInt256DiffBasedValue.getPrior()));
212213
});
213214
});
215+
storageKeyHashLookup.putAll(source.storageKeyHashLookup);
214216
this.isAccumulatorStateChanged = true;
215217
}
216218

@@ -504,8 +506,6 @@ public void commit() {
504506
tracked.setStorageWasCleared(false); // storage already cleared for this transaction
505507
}
506508
});
507-
getUpdatedAccounts().clear();
508-
getDeletedAccounts().clear();
509509
}
510510

511511
@Override

0 commit comments

Comments
 (0)