From cdfbe4633910061072d5d5d4bbb4ae869e7431c4 Mon Sep 17 00:00:00 2001 From: ahamlat Date: Thu, 5 Dec 2024 15:05:12 +0100 Subject: [PATCH] Clear updated and deleted accounts after each commit (#7974) Signed-off-by: Ameziane H. --- .../accumulator/DiffBasedWorldStateUpdateAccumulator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/diffbased/common/worldview/accumulator/DiffBasedWorldStateUpdateAccumulator.java b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/diffbased/common/worldview/accumulator/DiffBasedWorldStateUpdateAccumulator.java index c28bb731b5b..37e9c9c5830 100644 --- a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/diffbased/common/worldview/accumulator/DiffBasedWorldStateUpdateAccumulator.java +++ b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/diffbased/common/worldview/accumulator/DiffBasedWorldStateUpdateAccumulator.java @@ -504,6 +504,8 @@ public void commit() { tracked.setStorageWasCleared(false); // storage already cleared for this transaction } }); + getUpdatedAccounts().clear(); + getDeletedAccounts().clear(); } @Override