From 8c0224e8f25b39f6ee1a4d3ad60b048792c219dc Mon Sep 17 00:00:00 2001 From: shaozhuguang Date: Tue, 20 Oct 2020 19:00:38 +0800 Subject: [PATCH] modify default config --- .../src/main/resources/config/gateway.conf | 14 +++----------- .../src/main/resources/config/init/bftsmart.config | 2 ++ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/deploy/deploy-gateway/src/main/resources/config/gateway.conf b/deploy/deploy-gateway/src/main/resources/config/gateway.conf index e19b82b9..06e8cece 100644 --- a/deploy/deploy-gateway/src/main/resources/config/gateway.conf +++ b/deploy/deploy-gateway/src/main/resources/config/gateway.conf @@ -5,20 +5,12 @@ http.port=8080 #网关的HTTP服务上下文路径,可选; #http.context-path= -#对端Peer节点的数量 -peer.size=2 #共识节点的服务地址(与该网关节点连接的Peer节点的IP地址); -peer.0.host=127.0.0.1 +peer.host=127.0.0.1 #共识节点的服务端口(与该网关节点连接的Peer节点的端口,即在Peer节点的peer-startup.sh中定义的端口); -peer.0.port=7080 +peer.port=7080 #共识节点的服务是否启用安全证书; -peer.0.secure=false -#共识节点的服务地址(与该网关节点连接的Peer节点的IP地址); -peer.1.host=127.0.0.1 -#共识节点的服务端口(与该网关节点连接的Peer节点的端口,即在Peer节点的peer-startup.sh中定义的端口); -peer.1.port=7081 -#共识节点的服务是否启用安全证书; -peer.1.secure=false +peer.secure=false #共识节点的服务提供解析器 #BftSmart共识Provider:com.jd.blockchain.consensus.bftsmart.BftsmartConsensusProvider diff --git a/deploy/deploy-peer/src/main/resources/config/init/bftsmart.config b/deploy/deploy-peer/src/main/resources/config/init/bftsmart.config index b5bfa5a3..bd4035ab 100644 --- a/deploy/deploy-peer/src/main/resources/config/init/bftsmart.config +++ b/deploy/deploy-peer/src/main/resources/config/init/bftsmart.config @@ -74,6 +74,8 @@ system.servers.f = 1 #Timeout to asking for a client request system.totalordermulticast.timeout = 60000 +#Allowable time tolerance range(millisecond) +system.totalordermulticast.timeTolerance = 3000000 #Maximum batch size (in number of messages) system.totalordermulticast.maxbatchsize = 2000