1

So I setup my private net and I have multiple computers(peers) connected on this network, but when I deploy a new contract I have to mine it with the machine that created the contract. Shouldn't it be possible for my peers to mine the contract I upload?

If you need any extra information just ask me

bumped to the homepage by Community yesterday

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

  • What Ethereum client software are the nodes running? Are all the nodes mining? In geth, the --mine command-line option starts the node in mining mode. Mining can also be started and stopped from the geth console by miner.start() and miner.stop() commands. – Ajoy Bhatia May 18 '17 at 19:15
0

Take a look at gethdev.js script from A simple development wrapper for Ethereum's geth repo.

[..] runs a JavaScript file to automatically create the first account, and start and stop mining as needed.

Basically, it starts and stops a miner when there is a transaction from any peer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.