forked from Qortal/qortal
Don't attempt to cache blocks from the archive, as they will never be recent
This commit is contained in:
parent
bfaf4c58e4
commit
dff9ec0704
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user