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.


generate was deprecated and removed in favor of generatetoaddress.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.