Skip to content

Commit

Permalink
Don't log cache
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Dudley <[email protected]>
  • Loading branch information
siladu committed Oct 31, 2023
1 parent c3ee36f commit c104862
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ private void preloadCache() {
}
});
LOG.atInfo().log("Loaded {} trie logs from database", count);
printCache();
}

void cacheForLaterPruning(final long blockNumber, final byte[] trieLogKey) {
Expand All @@ -102,21 +101,6 @@ void pruneFromCache() {
// no = op
}

void printCache() {
LOG.atInfo().log(
() ->
knownTrieLogKeysByDescendingBlockNumber.entries().stream()
.map(
entry -> {
final Bytes32 hashBytes = Bytes32.wrap(entry.getValue());
final Hash hash = Hash.wrap(hashBytes);
return String.format(
"\nblockNumber: %s, trieLogKey: %s", entry.getKey(), hash.toHexString());
})
.reduce((a, b) -> a + b)
.orElse("empty"));
}

public static TrieLogPruner noOpTrieLogPruner() {
return new NoOpTrieLogPruner(null, null, 0);
}
Expand Down

0 comments on commit c104862

Please sign in to comment.