如何将新节点添加到现有的Corda网络? [英] How to add a new node to an existing corda network?

查看:186
本文介绍了如何将新节点添加到现有的Corda网络?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用例,我需要向现有的Corda网络中添加一个新节点(假设在现有的Corda网络中有2个节点当前正在运行(A,B节点),现在需要将节点C添加到该网络中.

I have a use case where I need to add a new node to an existing Corda network (let's say in existing Corda network 2 nodes are running currently (A, B node) and now need to add node C to this network.

我也通过以下链接访问,但没有运气:
向现有Corda网络添加新节点
找不到网络参数文件和兼容区域未配置/无法访问
在CORDA中动态部署和运行节点

I went through following links as well but no luck:
Adding new node to existing corda network
Couldn't find network parameters file and compatibility zone wasn't configured/isn't reachable
Deploy and run nodes dynamically in CORDA

我尝试了以下方法:
我在 build.gradle 内的 deployNodes 任务中添加了A和B节点配置,然后运行deployNodes任务,因此A和B节点成功启动,现在我创建了新文件夹PartyC并在其中为节点C添加了 corda.jar node.conf ,然后运行以下命令:
java -jar corda.jar
但是运行此命令时出现以下异常:

I tried the following approach:
I Added A and B nodes configurations in deployNodes task inside build.gradle and then run deployNodes tasks so A and B nodes start-up successfully now I create new folder PartyC and inside that added corda.jar and node.conf for node C and then running the command:
java -jar corda.jar
but I am getting the following exception while running this command:

Exception during node startup: Couldn't find network parameters file and compatibility zone wasn't configured/isn't reachable. [errorCode=1917kd6, moreInformationAt=https://errors.corda.net/OS/4.3/1917kd6]

新节点(节点C)的

node.conf文件如下:

node.conf file for new node (node C) is following:

devMode=true
h2Settings {
  address="localhost:12348"
}
myLegalName="O=PartyC,L=London,C=GB"
p2pAddress="partyc:10011"
rpcSettings {
  address="partyc:10012"
  adminAddress="partyc:10013"
}
security {
  authService {
    dataSource {
      type=INMEMORY
      users=[
        {
          password=test
          permissions=[
            ALL
          ]
          user=user1
        }
      ]
    }
  }
}
sshd {
  port=2227
}

我无法获得应该如何在此node.conf文件内添加网络参数或兼容性区域.

I am not able to get how should I need to add network parameters or compatibility zone inside this node.conf file.

推荐答案

要将新节点添加到现有网络,有2种可能的选择.

To add a new node to an existing network, there are 2 possible options.

使用网络 bootstrapper (和 docs 手动创建所需的文件,以允许节点与每个文件交互其他.这更多用于测试网络.

Use the network bootstrapper (and docs to manually create the required files to allow nodes to interact with each other. This is more for test networks.

或者使用网络地图服务,可以在此处找到操作系统实现.这对于真实网络来说更是如此.如果您使用的是Corda Enterprise,则还有Corda Enterprise网络管理器.

Or use a network map service, an OS implementation can be found here. This is more for real networks. There is also the Corda Enterprise Network Manager if you are using Corda Enterprise.

这篇关于如何将新节点添加到现有的Corda网络?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆