2
1
I'm testing a new altcoin that I've created between several computers in LAN but encounter a situation as follow:
Computer A's client connects to computer B's client through the B's IP in the addnode field in the config file and only B's IP is specified in it. The same thing happens between B and C as C only knows B through the config file. It seems that there is no connection between A and C since the the command getpeerinfo in both A and C doesn't show the other's IP. Indeed, when I shut down the client on computer B, the two clients on A and C become disconnected to the network.
So my question is: what should I do to make A and C connected since they share a common peer's connection? (assuming that the new common connections are random, not known in advance to be included in the config file)
I've read somewhere that there are seed nodes which stores IPs of clients which have connected to them and that they usually don't need to keep connecting to those new nodes, just save the addresses in the database and disconnect. In case of new peer connects to the network, those seed nodes will help to provide list of peers' IPs. So how can I configure a node to be a seed node? Is it in this case the DNS seed? (I guess it's not)
Thank you in advance and all kinds of help will be highly appreciated.
Thank you very much, Nate! It's exactly what I've read in Mastering Bitcoin that A should receive B's nodes which includes C but it doesn't work the same in my case. In addition, I started with Litecoin source code so there may be some changes in Litecoin related to this problem, I'm gonna look up more about this. Speaking about seed node, can you give me more specific info such as how to configure my client to only respond to
getaddr, we will have to code or it is just about edit settings likemaxMoney,rpcport,...? – hoanghs13 – 2016-11-18T03:35:06.367@hoanghs13 Did you finally manage to set the seeder node? I'm trying to do the same, but apparently the only viable way is to set up a DNS seeder. – FedFranzoni – 2017-09-29T15:41:30.177