logging fix for historical queries (#6830)

Signed-off-by: Matt Nelson <85905982+non-fungible-nelson@users.noreply.github.com>
pull/6841/head
Matt Nelson 7 months ago committed by GitHub
parent 3a2eb4e71e
commit 464cd2606a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/diffbased/common/DiffBasedWorldStateProvider.java

@ -132,7 +132,7 @@ public abstract class DiffBasedWorldStateProvider implements WorldStateArchive {
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();
}

Loading…
Cancel
Save