修改拜占庭共识的阈值判断。

This commit is contained in:
jiangbuyun 2021-03-09 15:16:38 +08:00
parent 58936d57a6
commit 10a9b9abba

View File

@ -23,7 +23,7 @@ object ConsensusCondition {
if(scaledata == 2) {
//采用大于1/2方法计算
input >= (Math.floor(((this.ConsensusNodes.get()) * 1.0) / scaledata + 1))
}else if(scaledata == 2) {
}else if(scaledata == 3) {
//采用大于2/3方法计算
input >= (Math.floor((((this.ConsensusNodes.get()) * 1.0) / scaledata) * 2) + 1)
}else{