user50633: After setting the dash-client in regtest mode, I am trying to generate coins.
No matter what I do, I get the above error.
When I run:
dash-cli -regtest getmininginfo 

I get the below output:
{
   "blocks": 0,
   "currentblocksize": 0,
   "currentblocktx": 0,
   "difficulty": 4.656542373906925e-10,
   "errors": "",
   "genproclimit": 1,
   "networkhashps": 0,
   "pooledtx": 0,
   "testnet": false,
   "chain": "regtest",
   "generate": false
}

How do I set the generate to true.
If I run
setgenerate true
I get the message that setgenerate is deprecated, on this network I need to use generate which doesn't run.

user48884: Unlock your wallet (using walletpassphrase) and run keypoolrefill as the error message says. generate and setgenerate requires keys from the wallet, and if the keypool is empty, they won't work.

50633: <p>After setting the dash-client in regtest mode, I am trying to generate coins.</p>
<p>No matter what I do, I get the above error.</p>
<p>When I run:</p>
<pre><code>dash-cli -regtest getmininginfo 
</code></pre>
<p>I get the below output:</p>
<pre><code>{
   &quot;blocks&quot;: 0,
   &quot;currentblocksize&quot;: 0,
   &quot;currentblocktx&quot;: 0,
   &quot;difficulty&quot;: 4.656542373906925e-10,
   &quot;errors&quot;: &quot;&quot;,
   &quot;genproclimit&quot;: 1,
   &quot;networkhashps&quot;: 0,
   &quot;pooledtx&quot;: 0,
   &quot;testnet&quot;: false,
   &quot;chain&quot;: &quot;regtest&quot;,
   &quot;generate&quot;: false
}
</code></pre>
<p>How do I set the generate to true.</p>
<p>If I run</p>
<p><code>setgenerate true</code></p>
<p>I get the message that <code>setgenerate</code> is deprecated, on this network I need to use generate which doesn't run.</p>
 48884: <p>Unlock your wallet (using <code>walletpassphrase</code>) and run <code>keypoolrefill</code> as the error message says. <code>generate</code> and <code>setgenerate</code> requires keys from the wallet, and if the keypool is empty, they won't work.</p>
