Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

共识节点配置灵活性问题 #951

Open
andyYuanFZM opened this issue Jan 26, 2021 · 2 comments
Open

共识节点配置灵活性问题 #951

andyYuanFZM opened this issue Jan 26, 2021 · 2 comments
Milestone

Comments

@andyYuanFZM
Copy link
Collaborator

andyYuanFZM commented Jan 26, 2021

Describe the bug
目前共识节点的配置通过配置文件设置
validatorNodes=["172.16.43.151:46656","172.16.43.152:46656","172.16.43.153:46656","172.16.43.154:46656"] ,共识节点ip变化或者用户配置不一致,影响链的运行。

To Reproduce

  1. 配置文件 node1 validatorNodes=["172.16.43.151:46656","172.16.43.152:46656","172.16.43.153:46656"]
    配置node2 validatorNodes=["172.16.43.151:46656","172.16.43.152:46656","172.16.43.154:46656"]
    停掉node3
    配置node4 validatorNodes=["172.16.43.152:46656","172.16.43.153:46656","172.16.43.154:46656"]

2 node1 node2 node4 启动 ,发转账交易 区块没有产生

Expected behavior
可选方案:
每个共识节点已经有私钥和证书,可以通过共识节点的证书来识别,不用通过配置。共识节点的证书已经在 genesis.json 声明过。而且共识节点ip变化也不影响。

@vipwzw
Copy link
Collaborator

vipwzw commented Jan 26, 2021

可以参考第三方的方案,有时间可以处理一下这个问题

@vipwzw vipwzw added this to the v1.66.0 milestone Jan 28, 2021
@caopingcp
Copy link
Contributor

caopingcp commented May 11, 2021

描述的bug出现的原因是node1,node4只连接了两个存活节点,不满足共识需要 2/3 以上节点的条件,导致达不成共识

目前联盟链中仍是通过配置文件来建立各节点之间的连接,比如百度超级链和FISCO,不能像公链采用种子节点来记录节点IP信息
由于共识建立自己的通信连接,维护比较繁琐,可以考虑复用P2P模块的连接 #995

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants