Skip to content

Commit

Permalink
load all accounts into cache (#6101)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
matkt authored Nov 3, 2023
1 parent 6a2d41f commit d049cb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public Account get(final Address address) {
if (deletedAccounts.contains(address)) {
return null;
}
return world.get(address);
return getForMutation(address);
}

@Override
Expand Down

0 comments on commit d049cb3

Please sign in to comment.