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
  • #594

Closed
Open
Opened Feb 25, 2023 by li ma@181645929

是否后续 在 chainClient stop的时候,也能将 ChainManage 中 chains 对应的 client 从map中 remove掉..这样再检测到网络异常后,可以重新初始化 chainClient

是否后续 在 chainClient stop的时候,也能将 ChainManager中 chains 对应的 client 从map中 remove掉..这样再检测到网络异常后,可以重新初始化 chainClient

现在程序中用的是复写了 ChainManagerUziChainManager.java

增加了

public void stopClient(String chainId) {
        try {
            log.info("chains " + chains);
            log.info("Stopping client " + chainId);
            ((ChainClient) this.chains.get(chainId)).stop();
        }catch(Exception e){
            log.error("Failed to stop client " + chainId, e);
        }
        this.chains.remove(chainId);
    }
Edited Mar 16, 2023 by taifu yuan
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#594

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