Reputation: 545
I have working Corda network - Notary, NodeA, NodeB.
From the code nodes are available by
List nodeInfo = rpcOps.networkMapSnapshot();
Next, I have to add a new node NodeC to the existing network. Without restarting all the network. I have tried the next steps - Redeploying nodes in corda
New node NodeC started without any errors. But the network cannot see this NodeC. I think need to use specific service node for this aim. Any examples and best practice?
Thanks.
Upvotes: 0
Views: 131
Reputation: 23140
In Corda 3, the network map node was removed. Instead, all nodes need to be made aware of each other in one of two ways:
By using the bootstrapper tool to copy each node's information to all the other nodes' addditional-node-infos
folder. You can find information about running the bootstrapper here. Note that the bootstrapper is run automatically when you run the deployNodes
Gradle task
By creating a network map server that distributes information on all the network's nodes. See the protocol the network map must implement here
So in your case, you would need to stop all the nodes and re-run the bootstrapper tool. Once you restart the nodes, they will all be aware of each other.
Upvotes: 0