We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1ecb3c commit f22c18aCopy full SHA for f22c18a
framework/src/main/java/org/tron/core/services/event/BlockEventLoad.java
@@ -69,7 +69,9 @@ public synchronized void load() throws Exception {
69
if (cacheHeadNum >= tmpNum) {
70
return;
71
}
72
- tmpNum = Math.min(tmpNum, cacheHeadNum + MAX_LOAD_NUM);
+ if (tmpNum > cacheHeadNum + MAX_LOAD_NUM) {
73
+ tmpNum = cacheHeadNum + MAX_LOAD_NUM;
74
+ }
75
List<BlockEvent> l1 = new ArrayList<>();
76
List<BlockEvent> l2 = new ArrayList<>();
77
BlockEvent tmp = BlockEventCache.getHead();
0 commit comments