Skip to content

Commit b70078c

Browse files
committed
feat(net): reduce the interval between batch request blocks to 100ms
1 parent eafada1 commit b70078c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

framework/src/main/java/org/tron/core/config/args/Args.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ public static void setParam(final String[] args, final String confFileName) {
953953
PARAMETER.fastForwardNodes = getInetSocketAddress(config, Constant.NODE_FAST_FORWARD, true);
954954

955955
PARAMETER.maxFastForwardNum = config.hasPath(Constant.NODE_MAX_FAST_FORWARD_NUM) ? config
956-
.getInt(Constant.NODE_MAX_FAST_FORWARD_NUM) : 3;
956+
.getInt(Constant.NODE_MAX_FAST_FORWARD_NUM) : 4;
957957
if (PARAMETER.maxFastForwardNum > MAX_ACTIVE_WITNESS_NUM) {
958958
PARAMETER.maxFastForwardNum = MAX_ACTIVE_WITNESS_NUM;
959959
}

framework/src/main/java/org/tron/core/net/service/sync/SyncService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void init() {
9090
} catch (Exception e) {
9191
logger.error("Handle sync block error", e);
9292
}
93-
}, 10, 1, TimeUnit.SECONDS);
93+
}, 10000, 100, TimeUnit.MILLISECONDS);
9494
}
9595

9696
public void close() {

0 commit comments

Comments
 (0)