Skip to content

Commit 21c7c7a

Browse files
committed
mdf cache size
1 parent a45323a commit 21c7c7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/tron/core/net/node/NodeImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ private void consumerAdvObjToFetch() {
479479
if ( (idToFetch.getType().equals(InventoryType.TRX) && TrxCache.getIfPresent(hash) != null) ||
480480
(idToFetch.getType().equals(InventoryType.BLOCK) && BlockCache.getIfPresent(hash) != null) ){
481481
logger.info("{} {} Already exist.", idToFetch.getType(), hash);
482+
advObjToFetch.remove(hash);
482483
return;
483484
}
484485
if (idToFetch.getTime() < now - MSG_CACHE_DURATION_IN_BLOCKS * BLOCK_PRODUCED_INTERVAL) {

0 commit comments

Comments
 (0)