From 464cd2606aae5783e74f3c34df0ec0030f9e40f4 Mon Sep 17 00:00:00 2001 From: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com> Date: Thu, 28 Mar 2024 15:14:25 -0400 Subject: [PATCH] logging fix for historical queries (#6830) Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com> --- .../trie/diffbased/common/DiffBasedWorldStateProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/diffbased/common/DiffBasedWorldStateProvider.java b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/diffbased/common/DiffBasedWorldStateProvider.java index 18bf333828b..bda86f7dfac 100644 --- a/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/diffbased/common/DiffBasedWorldStateProvider.java +++ b/ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/diffbased/common/DiffBasedWorldStateProvider.java @@ -132,7 +132,7 @@ public Optional getMutable( if (chainHeadBlockHeader.getNumber() - blockHeader.getNumber() >= trieLogManager.getMaxLayersToLoad()) { LOG.warn( - "Exceeded the limit of back layers that can be loaded ({})", + "Exceeded the limit of historical blocks that can be loaded ({}). If you need to make older historical queries, configure your `--bonsai-historical-block-limit`.", trieLogManager.getMaxLayersToLoad()); return Optional.empty(); }