Skip to content

Mining with computer

Pubfred edited this page Oct 21, 2018 · 1 revision

To mine ZEOn with your computer :

Ubuntu
./zeon-cli setgenerate true

./zeon-cli help setgenerate setgenerate generate ( genproclimit )

Set 'generate' true or false to turn generation on or off. Generation is limited to 'genproclimit' processors, -1 is unlimited. See the getgenerate call for the current setting.

Arguments:

  1. generate (boolean, required) Set to true to turn on generation, false to turn off.
  2. genproclimit (numeric, optional) Set the processor limit for when generation is on. Can be -1 for unlimited. Note: in -regtest mode, genproclimit controls how many blocks are generated immediately.

Result [ blockhashes ] (array, -regtest only) hashes of blocks generated

Examples:

Set the generation on with a limit of one processor

zeon-cli setgenerate true 1

Check the setting

zeon-cli getgenerate

Turn off generation

zeon-cli setgenerate false

Using json rpc

curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "setgenerate", "params": [true, 1] }' -H 'content-type: text/plain;' http://127.0.0.1:21944/

Windows

setgenerate

setgenerate generate ( genproclimit )

Set 'generate' true or false to turn generation on or off. Generation is limited to 'genproclimit' processors, -1 is unlimited. See the getgenerate call for the current setting.

Arguments:

  1. generate (boolean, required) Set to true to turn on generation, false to turn off.
  2. genproclimit (numeric, optional) Set the processor limit for when generation is on. Can be -1 for unlimited. Note: in -regtest mode, genproclimit controls how many blocks are generated immediately.
Clone this wiki locally