本文介绍了如何在Corda Testnet网络中部署多个节点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Corda和Springboot Web服务器构建POC.

以下是Corda平台,Springboot服务器的版本以及用于构建POC的其他基本依赖项-

  cordaReleaseGroup = net.cordacordaVersion = 4.0gradlePluginsVersion = 4.0.45kotlinVersion = 1.2.71junitVersion = 4.12quasarVersion = 0.7.10spring_version ='4.3.11.RELEASE'spring_boot_version ='2.0.2.RELEASE'spring_boot_gradle_plugin_version ='2.1.1.RELEASE'jvmTarget ="1.8"log4jVersion = 2.11.2platformVersion = 4slf4jVersion = 1.7.25nettyVersion = 4.1.22.最终 

为POC开发的CorDapp具有四个节点-

 公证人节点提供商公司节点消费者公司1节点消费者公司1子联系人节点 

POC在我们的本地网络中以 dev模式运行.

我们需要在 Corda Testnet 中测试POC.

我们在 Corda Testnet -

上阅读了以下文档

1:加入Corda TestNet网址: https://docs.corda.net/releases/release-V4.0/corda-testnet-intro.html?highlight=joining%20corda%20testnet

2:从本地环境将Corda部署到Corda Testnet https://docs.corda.net/releases/release-V4.0/deploy-locally.html?highlight=deploying%20corda%20corda%20testnet%20from%20your%20local%20environment

从上述文档中我们了解到,一次注册只能下载一个"Corda节点".为了下载四个Corda节点,我们是否必须使用四个不同的帐户加入Corda Testnet?

我们的理解正确吗?

解决方案

根据我的理解,您可以刷新Testnet节点安装页面来启动多个节点,或者通过创建一个节点,然后单击下一步",应该带您回到节点列表,并显示一个按钮以允许创建另一个节点.

它应该每次为您提供一个唯一的 ONE_TIME_DOWNLOAD_KEY ,并自动为您分配一个随机的字母数字 O (组织)值,以在节点配置文件中使用,从而有助于网络图(以及网络上的其他节点)以分别区分您​​的节点.

请确保您不会无意中运行具有相同标识的同一节点的副本,否则网络映射将仅假设原始节点的地址已发生更改,并将P2P流量路由到最新实例./p>

看看 node.conf 文档,以进一步了解节点配置:

https://docs.corda.net/corda-configuration-file.html

We are building a POC using Corda and Springboot web server.

Following are the versions of Corda platform, Springboot server, and other essential dependencies used for building the POC-

cordaReleaseGroup=net.corda
cordaVersion=4.0
gradlePluginsVersion=4.0.45
kotlinVersion=1.2.71
junitVersion=4.12
quasarVersion=0.7.10
spring_version = '4.3.11.RELEASE'
spring_boot_version = '2.0.2.RELEASE'
spring_boot_gradle_plugin_version = '2.1.1.RELEASE'
jvmTarget = "1.8"
log4jVersion =2.11.2
platformVersion=4
slf4jVersion=1.7.25
nettyVersion=4.1.22.Final

The CorDapp developed for POC has four nodes -

Notary Node
Provider Company Node
Consumer Company 1 Node
Consumer Company 1 Sub Contact Node

The POC is running in dev mode in our local network.

We require to test the POC in the Corda Testnet.

We went through the following documentation on Corda Testnet -

1: Join Corda TestNetURL : https://docs.corda.net/releases/release-V4.0/corda-testnet-intro.html?highlight=joining%20corda%20testnet

2: Deploying Corda to Corda Testnet from your local environmenthttps://docs.corda.net/releases/release-V4.0/deploy-locally.html?highlight=deploying%20corda%20corda%20testnet%20from%20your%20local%20environment

We understood from the above documentation that we can download only one "Corda node" using one registration. Will we have to join the Corda Testnet using four different accounts in order to download four Corda nodes?

Is our understanding correct?

解决方案

As per my understanding you can spin up multiple nodes with a refresh of the Testnet node installation page, or by creating a node and then clicking 'next', which should take you back to the node list and present a button to allow creation of another node.

It should provide you with a unique ONE_TIME_DOWNLOAD_KEY each time, and automatically assign you a randomised alphanumeric O (organisation) value to use within the nodes configuration file, helping the network map (and thus other nodes on the network) to distinguish your nodes individually.

Make sure you don't unintentionally run copies of the same node with the same identity, otherwise the network map will just assume there has been a change in the address of the original node and route P2P traffic to the newest instance.

Take a look at the node.conf docs to understand node configuration further:

https://docs.corda.net/corda-configuration-file.html

这篇关于如何在Corda Testnet网络中部署多个节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-21 06:07