Skip to content

Commit

Permalink
Logging and +1 error
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Dudley <[email protected]>
  • Loading branch information
siladu committed Oct 10, 2023
1 parent 9a15a2a commit dfdf0f1
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,12 @@ public void run() {
out.println("Current trie log disk usage:");
printTrieLogDiskUsage(out);

out.printf("Current head block number: %d\n", blockchain.getChainHead().getHeight());
out.printf("Trie log layers to retain: %d\n", layersToRetain);
final long deleteBelowHere = blockchain.getChainHead().getHeight() - layersToRetain;
out.printf("Attempting trie log layer prune below block %s...\n", deleteBelowHere);
final long deleteBelowHere = blockchain.getChainHead().getHeight() - layersToRetain + 1;
out.printf(
"Attempting trie log layer prune below block %s = (%s - %s + 1)...\n",
deleteBelowHere, blockchain.getChainHead().getHeight(), layersToRetain);

WorldStateArchive worldStateArchive =
besuController.getProtocolContext().getWorldStateArchive();
Expand Down

0 comments on commit dfdf0f1

Please sign in to comment.