user101184: How to generate a block in the new version of bitcoind.

bitcoin-cli -regtest generate 1

The above command no longer works with the latest bitcoind package
I want to confirm a transaction I have executed under the regtest mode for bitcoind, hence generating a block to confirm the tx.

user48884: generate was deprecated and removed in favor of generatetoaddress.

101184: <p>How to generate a block in the new version of bitcoind.</p>

<blockquote>
  <p>bitcoin-cli -regtest generate 1</p>
</blockquote>

<p>The above command no longer works with the latest bitcoind package</p>

<p>I want to confirm a transaction I have executed under the regtest mode for bitcoind, hence generating a block to confirm the tx.</p>
 48884: <p><code>generate</code> was deprecated and removed in favor of <code>generatetoaddress</code>.</p>
