From 56eff5810108c6ec63dd4e2a5885fff15b9de67e Mon Sep 17 00:00:00 2001 From: Simon Dudley Date: Tue, 31 Oct 2023 15:30:13 +1000 Subject: [PATCH] Don't prune orphaned blocks Signed-off-by: Simon Dudley --- .../hyperledger/besu/ethereum/bonsai/trielog/TrieLogPruner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/bonsai/trielog/TrieLogPruner.java b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/bonsai/trielog/TrieLogPruner.java index c7deafecdfa..b93268b7bc6 100644 --- a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/bonsai/trielog/TrieLogPruner.java +++ b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/bonsai/trielog/TrieLogPruner.java @@ -82,7 +82,7 @@ private void preloadCache() { count.getAndIncrement(); } else { // prune orphaned blocks (sometimes created during block production) - rootWorldStateStorage.pruneTrieLog(hashAsBytes); + // rootWorldStateStorage.pruneTrieLog(hashAsBytes); } }); LOG.atInfo().log("Loaded {} trie logs from database", count);