3
0
mirror of https://github.com/Qortal/qortal.git synced 2025-02-14 11:15:49 +00:00

Don't attempt to cache blocks from the archive, as they will never be recent

This commit is contained in:
CalDescent 2021-10-07 18:50:59 +01:00
parent bfaf4c58e4
commit dff9ec0704

View File

@ -1405,13 +1405,6 @@ public class Controller extends Thread {
return;
}
// If request is for a recent block, cache it
if (getChainHeight() - blockData.getHeight() <= blockCacheSize) {
this.stats.getBlockMessageStats.cacheFills.incrementAndGet();
this.blockMessageCache.put(new ByteArray(blockData.getSignature()), blockMessage);
}
// Sent successfully from archive, so nothing more to do
return;
}