Need to create a new node without redeploying nodes in Corda?

瘦欲@ 提交于 2019-12-03 21:32:01

Yes it is possible (Imagine a configuration where nodes / actors couldn't join or leave the distributed ledger on demand ? That would be madness right?). All the active nodes communicate with the network map service so all your new node needs to do is announce itself to this and voila - the existing nodes are now informed.

I'm simplifying the process a little bit as we have gone through a revision of how this is done recently (and I don't want to give you the wrong answer), but depending on what milestone release you are running I can elucidate further.

Yes. Prior to Corda 2, you would be this as follows:

  • Create a new folder containing the Corda jar and node.conf file, or make a copy of an existing node folder
  • Modify the node.conf file to have its own web, RPC and P2P ports. Make sure you don't change the network map information
  • Start the node by running java -jar corda.jar
    • You can optionally also start a node webserver by placing the corda-webserver jar in the same folder and running java -jar corda-webserver.jar

As long as your nodes are in dev mode, they'll auto-generate certificates if none are provided in their certificates folder. They'll connect to the same network map and be able to speak to the other nodes.

In Corda 3, you need to stop all the nodes and re-run the bootstrapper after adding a node or modifying a node's node.conf file. See the instructions here

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!