删除自动设置超时时间

This commit is contained in:
wuwei1972 2019-05-12 14:50:12 +08:00
parent 263841740b
commit 2e95cf000b
2 changed files with 9 additions and 9 deletions

View File

@ -150,10 +150,10 @@ system {
timeout {
//Unit : Second 以下的超时时间一般采用默认配置
//For auto 自动采用的超时时间
base_preload = 30//交易预执行的超时时间单位是s
base_vote = 20//内部消息传递速度快,抽签的超时时间
base_sync = 20//没有耗时操作,没有大块传输的情况下
base_addition = 0//冗余量,不用配置
//base_preload = 30//交易预执行的超时时间单位是s
//base_vote = 20//内部消息传递速度快,抽签的超时时间
//base_sync = 20//没有耗时操作,没有大块传输的情况下
//base_addition = 0//冗余量,不用配置
//For config manually 手工设置超时时间,系统主动采用手工设置的时间,可以不用设置
block = 90//出块的超时时间

View File

@ -118,17 +118,17 @@ object TimePolicy {
VOTE_WAITING_DELAY = config.getLong("system.time.block.waiting_delay")
SYS_NODE_STABLE_DELAY = config.getLong("system.cluster.node_stable_delay")
STABLE_TIME_DUR = config.getInt("system.time.stable_time_dur")
val policyType = config.getInt("system.time.timeout_policy_type")
//val policyType = config.getInt("system.time.timeout_policy_type")
TRANSCATION_WAITING = config.getInt("system.time.timeout.transcation_waiting")
policyType match {
case PolicyType.MANUAL =>
//policyType match {
// case PolicyType.MANUAL =>
TIMEOUT_BLOCK = config.getInt("system.time.timeout.block")
TIMEOUT_ENDORSE = config.getInt("system.time.timeout.endorse")
TIMEOUT_PRELOAD_TRANS = config.getInt("system.time.timeout.transaction_preload")
TIMEOUT_SYNC_CHAIN = config.getInt("system.time.timeout.sync_chain")
case PolicyType.AUTO =>
/* case PolicyType.AUTO =>
//这里我们根据经验设定算法通过基准时间一个出块时间来配置其他的超时时间
//类似于默认
val basePre = config.getInt("system.time.timeout.base_preload")
@ -138,7 +138,7 @@ object TimePolicy {
TIMEOUT_ENDORSE = basePre*2
TIMEOUT_BLOCK = (3 * basePre + baseAdd)
TIMEOUT_SYNC_CHAIN = baseSync
}
}*/
}
}