Each new node starts with an initial amount?

+1 vote
Hi,

I am preparing a  workshop with multichain in a classroom for 20 students and I want every student to start his node with an initial amount of one particular asset so they can start sending amounts to each other. I do not want to mention each account explicitly in a command like sendmany. This will take too much time in a live class setting. Also I am not allowed to use '*' in this command and I can't find a related variable in the params.dat file.

Cheers,

Ewout
asked May 20 by Bloesum

1 Answer

0 votes
 
Best answer

I'm afraid it's not possible to do this – in general the only way for a node to own an amount of an asset is if the node has the private key for an address, and some of that asset has been sent to that address on the chain.

You might want to look at the initprivkey runtime parameter which lets a node be started with a particular first private key, instead of a self-generated one. That way you can preload an address with an amount, then start up a new node with the private key corresponding to that address.

answered May 21 by MultiChain
edited May 23 by MultiChain
...