shadow / shadow-plugin-bitcoin

A Shadow plug-in that runs the Bitcoin Satoshi reference software
https://shadow.github.io
Other
25 stars 23 forks source link

Customising bitcoin network simulation #2

Open bawejakunal opened 9 years ago

bawejakunal commented 9 years ago

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 ?

amiller commented 9 years ago

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?

smouldering commented 8 years ago

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.