mirror of
https://gitee.com/BTAJL/repchain.git
synced 2024-12-02 03:38:08 +08:00
修改拜占庭共识的阈值判断。
This commit is contained in:
parent
58936d57a6
commit
10a9b9abba
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user