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 9
    • Issues 9
    • 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
  • #1559

Closed
Open
Opened Mar 04, 2026 by pang@15521392713

同步节点新增问题

在现有组织下新增同步节点

以为 wx-org1.chainmaker.org 新增一个同步节点为例:

第 1 步:生成同步节点证书

通过 CA 服务为 wx-org1 生成一个新的同步节点证书(common2),包括:

  • common2.sign.key / common2.sign.crt
  • common2.tls.key / common2.tls.crt

第 2 步:准备同步节点部署目录

# 1. 复制 org1 的部署包
cp -rf chainmaker-v2.3.7-wx-org1.chainmaker.org chainmaker-v2.3.7-wx-org1.chainmaker.org_common2

# 2. 修改 bin/ 下 .sh 脚本中的组织名追加 _common2

# 3. 重命名 config 目录
cd chainmaker-v2.3.7-wx-org1.chainmaker.org_common2/config
mv wx-org1.chainmaker.org wx-org1.chainmaker.org_common2

# 4. 将 common2 证书拷贝到
#    config/wx-org1.chainmaker.org_common2/certs/node/common2/ 下

# 5. 修改 chainmaker.yml:
#    - 路径中 wx-org1.chainmaker.org → wx-org1.chainmaker.org_common2
#    - node.sign_key_file: certs/node/common2/common2.sign.key
#    - node.sign_crt_file: certs/node/common2/common2.sign.crt
#    - net.tls_key_file: certs/node/common2/common2.tls.key
#    - net.tls_crt_file: certs/node/common2/common2.tls.crt
#    - net.listen_addr: /ip4/0.0.0.0/tcp/11306(不与原节点冲突)
#    - rpc.port: 12306
#    - monitor.port: 14326
#    - pprof.port: 24326

# 6. 修改 chainconfig/bc1.yml 中 trust_roots 路径
#    ../config/wx-org1.chainmaker.org → ../config/wx-org1.chainmaker.org_common2

1、现有组织增加同步节点应该是这个步骤,其中修改 bin/ 下 .sh 脚本中的组织名追加 _common2 可以具体列出哪些地方要改吗,带有组织名称的地方是否全都要改? 2、ca生成组织1同步节点2证书的时候是不是要用原来生成初始链的ca,换了一个ca行不行

Edited Mar 04, 2026 by pang
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#1559

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