Setgenerate
setgenerate
Set 'generate' true or false to turn generation on or off.
Arguments
| Position | Name | Type | Required | Default | Description |
|---|---|---|---|---|---|
Examples
Set the generation on with a limit of one processor
raptoreum-cli setgenerate true 1
Check the setting
raptoreum-cli getgenerate
Turn off generation
raptoreum-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:10225/