Skip to content

Commit

Permalink
Call pruneFromCache() during initialise as well
Browse files Browse the repository at this point in the history
Better to prune the large amount during startup rather than delay until saveTrieLog
Signed-off-by: Simon Dudley <[email protected]>
  • Loading branch information
siladu committed Nov 3, 2023
1 parent 9ac5efa commit 6d22bf7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ private void preloadCache() {
}
});
LOG.atInfo().log("Loaded {} trie logs from database", count);
pruneFromCache();
}

void cacheForLaterPruning(final long blockNumber, final byte[] trieLogKey) {
Expand Down

0 comments on commit 6d22bf7

Please sign in to comment.