shadow-plugin-bitcoin icon indicating copy to clipboard operation
shadow-plugin-bitcoin copied to clipboard

Customising bitcoin network simulation

Open bawejakunal opened this issue 10 years ago • 2 comments

I plan to simulate a bitcoin network of about 100 nodes, however in the given example shadow.config.xml file, if the -connect=bcdnodeX where X = 1, 2, 3 etc is removed then the network simulation doesn't seems to be working as the satoshi-node-discovery fails to find and connect to simulated nodes. Any way that I can get around this ?

bawejakunal avatar Oct 21 '15 06:10 bawejakunal

Let's see. I think you should be able to use these options -addnode=bcdnodeX -dnsseed=0, to skip the built-in seeds, but initialize with some known IP addresses. Would you try that and see if it worked?

amiller avatar Oct 21 '15 06:10 amiller

Make sure you use -bind=IP:8333 (or any port you want) to match the IP address of the node in the graphml. This is needed for node address propagation if you're looking to let the nodes discover each other for the duration of the experiment.

Otherwise the node will send 0:0:0:0:0:0:0:0 instead of its actual IP address to other nodes during the handshake.

smouldering avatar May 10 '16 14:05 smouldering