From d049cb3e34b92d160b181e36329a84671703e068 Mon Sep 17 00:00:00 2001 From: matkt Date: Fri, 3 Nov 2023 16:04:35 +0100 Subject: [PATCH] load all accounts into cache (#6101) There was a slight problem on the bonsai side because all account reads did not go through a single method. One of the two add the account to the cache but the other did not. This had two consequences: Less good performance because certain accounts had to be read several times and also all account reads were not marked in the trielog. This will fix both problems. Signed-off-by: Karim TAAM --- .../hyperledger/besu/evm/worldstate/AbstractWorldUpdater.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evm/src/main/java/org/hyperledger/besu/evm/worldstate/AbstractWorldUpdater.java b/evm/src/main/java/org/hyperledger/besu/evm/worldstate/AbstractWorldUpdater.java index 947f6f24270..9623eaf89ed 100644 --- a/evm/src/main/java/org/hyperledger/besu/evm/worldstate/AbstractWorldUpdater.java +++ b/evm/src/main/java/org/hyperledger/besu/evm/worldstate/AbstractWorldUpdater.java @@ -100,7 +100,7 @@ public Account get(final Address address) { if (deletedAccounts.contains(address)) { return null; } - return world.get(address); + return getForMutation(address); } @Override