setgenerate - Hush 3.10.3 RPC

setgenerate generate ( genproclimit )

Set 'generate' true to turn mining/generation on or false turn both off.
Mining 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, off to turn off.
2. genproclimit     (numeric, optional) Set processor limit when generation is on. Can be -1 for unlimited.

Examples:

Set the generation on with a limit of one processor
> hush-cli setgenerate true 1

Check the setting
> hush-cli getgenerate 

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:18031/


Maintained by The Hush Developers

Welcome to the Hush full node RPC developer documentation!!! You finally made it.