Start script for several nodes

+4 votes
Hi,
I was wondering how to put a script, or several, together to quickly setup a network from scratch, since the peers get a "send this addtess to a node with admin permission" message.

Any advice on how to accomplish this? I tried to contact tge authors of tge docker setup, but I cant figure it out.
asked Oct 29, 2017 by Rachelle Janssen

1 Answer

+1 vote

The main thing that will help you is the shortoutput runtime parameter. To quote the documentation:

When running multichaind, this only show the node address (if connecting was successful) or an address in the wallet (if connect permissions must be granted by another node). This is useful for building automated deployment scripts.

If you want to pregenerate private keys for the nodes in the network, the initprivkey parameter can also help you, by telling new nodes to start with a specific private key (and its corresponding address) instead of randomly generating their own.

answered Oct 29, 2017 by MultiChain
...