Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
issue
issue
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • chainmaker
  • issueissue
  • Issues
  • #1301

Closed
Open
Opened Jan 10, 2025 by 17758909879@17758909879🎱1 of 19 tasks completed1/19 tasks

替换链上的旧节点时,产生的一些bug(启动、共识)

【问题分类】

  • bug
  • P2P网络相关(包含libp2p,liquid)
  • 链账户身份与权限相关(证书问题、public、多签投票问题)
  • 核心交易引擎相关(交易池、DAG)
  • 共识相关
  • 智能合约相关
  • 存储相关
  • SDK相关
  • 长安链CMC工具
  • 长安链管理台
  • 长安链浏览器
  • 长安链合约IDE
  • 长安链web签名插件
  • 跨链相关
  • 轻节点相关
  • 隐私计算相关
  • 密码学相关
  • 环境依赖
  • 其他补充:

【问题描述】(请对问题进行描述,方便定位问题)

问题1:由于要进行测试数据替换,链上有4个节点,A,B,C,oldD, 把oldD改成newD时,chainmaker中识别到的依旧是old配置,但是配置信息确认过是更新后的newD,没有配置oldD

配置如下

consensus:
  type: 1
  nodes:
    - org_id: "A"
      node_id:
        - "QmYaPAfrDKeGV7koGgjcMRjc8d7FT4qVB9FBAMYkHyYHnm"
    - org_id: "B"
      node_id:
        - "QmNeBk8A1mbSeR1syr6nCAvo9xLTdizQ91Kck3GkvNiyym"
    - org_id: "C"
      node_id:
        - "QmdqrSyoDqHHCHE7QUFFrYszBjxW9GoUJu6DNC4X85fZiW"
    - org_id: "newD"
      node_id:
        - "QmUWUHeFZ3hgzKDoVi1pTrVAc6zdjEj1Sfy9sDdRGz49LC"

trust_roots:
  - org_id: "A"
    root:
      - "../config/wx-org1.chainmaker.org/certs/ca/A/ca.crt"
  - org_id: "B"
    root:
      - "../config/wx-org1.chainmaker.org/certs/ca/B/ca.crt"
  - org_id: "C"
    root:
      - "../config/wx-org1.chainmaker.org/certs/ca/C/ca.crt"
  - org_id: "newD"
    root:
      - "../config/wx-org1.chainmaker.org/certs/ca/newD/ca.crt"

问题2:由于找不出问题1 oldD存在于哪个配置中时, 采用新节点newerD来替换配置,链能成功启动,但是共识不了,模式为permissionWithCert

【相关日志文件】(如果有报错日志请贴图,或者上传附件)

问题1: image

init blockchain[x] failed, fail to initialize identity management service: [setup cert member failed, organization information in certificate and in input parameter do not match [certificate: oldD, parameter: newD]]

问题2: image

【系统信息】(请填写系统信息,方便定位问题)

  • chainmaker-go version * : [v2.3.3]
  • OS & version * :
  • docker镜像 version:
  • 管理台 version:
    • 如果是管理台的相关问题,请附带管理台版本,如果不是可忽略。
  • 区块浏览器 version:
    • 如果是浏览器的相关问题,请附带浏览器版本,如果不是可忽略。
  • 合约IDE version:
    • 如果是合约IDE的相关问题,请附带合约IDE版本,如果不是可忽略。
  • web签名插件 version:
    • 如果是web签名插件的相关问题,请附带web签名插件版本,如果不是可忽略。
Edited Jan 10, 2025 by 17758909879
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: chainmaker/issue#1301

Copyright © 2021 ChainMaker Org. All Rights Reserved. 长安链 版权所有。