【发布时间】:2020-04-17 04:52:18
【问题描述】:
我有一个用例,我需要向现有的 Corda 网络添加一个新节点(假设在现有的 Corda 网络中,当前正在运行 2 个节点(A,B 节点),现在需要将节点 C 添加到该网络。
我也浏览了以下链接,但没有运气:
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
但运行此命令时出现以下异常:
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 文件如下:
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 文件中添加网络参数或兼容区域。
【问题讨论】: