Removing a node from the network

+1 vote
I am running a private chain in my LAN with Node1 as primary server. I connected the Node2 to the chain created using Node1 and 2 nodes were synced after I granted permission to connect,send and receive to node2.

Disconnected the node2 by stopping the multichaind and i could see that node1 is still trying to connect to node2 , following is the message in the debug log in node1.

"connect() to 192.168.100.21:4249 failed after select(): Connection refused (111)"

 

How do I tell node1 not to try to connect to node2. if there any config entry which I can delete the reference to node2.

( my second node was rebooted and hence lost this connectivity. thats the reason for the question)
asked Apr 18, 2016 by sanmadhavan

1 Answer

0 votes
MultiChain handles all the peer-to-peer stuff automatically, so it remembers peers that it was connected to previously, and will retry them for a period. There's no harm in this and it handles failed connections just fine.
answered Apr 18, 2016 by MultiChain
okay thanks.
I am testing one special scenario. with the following network nodes combination.
1 x main node
5 x miner node

can I stop the main node and expect the block continue to work, as soon as i stop the main node, the other 5x miner node simply stopped working :( unless i bring the main node back online. Is this how it's supposed to work?
I see why, one of my node named "X Node" keeps trying to connect to the main node which i purposely stopped. how do we tell the "X Node" to try other node instead? isn't it how the peer2peer should work? addnode doesnt seem to work.
...