向现有的Corda网络添加新节点

时间:2018-10-25 15:18:45

标签: corda

正在尝试在Corda网络中使用现有节点添加新节点。我做了文档。但是无法实现。

  1. 足够用文档中提到的node.conf创建一个文件夹。如果这样,则在运行引导程序时未更新文件夹中的数据和信息。但是我可以通过在node.conf文件中添加corda和corda Web服务器来实现这一点。
  2. 在将新节点添加到网络时,现有节点正在进行的交易将发生什么?
  3. 我是否要向新节点文件夹中的cordapps文件夹中添加任何其他corda jar?我检查了其他节点文件夹,并在cordapps文件夹下找到了corda jars。在新节点文件夹中不包含这些jar很好吗?

1 个答案:

答案 0 :(得分:0)

请注意-

  1. 新节点应具有与现有节点相同的文件夹结构。
  2. 每个节点的
  3. Node.conf,证书,其他节点信息文件可能会有所不同。

如果您以开发人员模式运行,则建议您使用“ gradlew.bat deployNodes” 命令重新创建网络。这将重新部署包括新节点在内的所有节点。

如果您在生产模式下运行,那么您已经使用了网络映射-“ https://docs.corda.net/network-map.html”。

1. Is that enough to create a folder with node.conf as mentioned in documents. If then its not updating the data and info in the folder while running bootstrapper. But I can achieve this by adding corda and corda webserver with node.conf file.

回答:您可能必须将其他节点中存在的Corda jar复制到新节点。

2. What will happen to ongoing transactions from the existing node while adding the new node to the network?

回答:在升级节点或节点上的应用程序之前,必须将节点置于排水模式。这样可以使当前正在运行的Flow平稳停止,以使现有工作完成并且新工作正在排队而不是被处理。

https://docs.corda.net/node-upgrade-notes.html?highlight=draining

3. Do I want to add any other corda jar to the cordapps folder which is present in the new node folder? I checked in other node folder and found corda jars under cordapps folder. Is that fine to not having those jars in new node folder?

回答:否。新节点应在其他节点中包含所有Corda jar。

相关问题