Skip to content

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

@andyYuanFZM

Description

@andyYuanFZM

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变化也不影响。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions