在重发背书消息时,检查系统是否达到共识的节点数量。

This commit is contained in:
jiangbuyun 2021-11-06 14:07:09 +08:00
parent 6e5a5c3b9e
commit baee29af29

View File

@ -141,7 +141,7 @@ class EndorseCollector(moduleName: String) extends ModuleBase(moduleName) {
}
}
case ResendEndorseInfo(endorer)=>
if(!pe.isSynching){
if(!pe.isSynching && ConsensusCondition.CheckWorkConditionOfSystem(pe.getNodeMgr.getStableNodes.size)){
if(NodeHelp.isBlocker(pe.getSysTag, pe.getBlocker.blocker)){
if (this.block != null && this.block.previousBlockHash.toStringUtf8() == pe.getCurrentBlockHash ) {
if(this.router != null){