Method not found when I use bitcoin-cli to generate blocks under regtest mode

0

enter image description here

As the picture shows,I am really confuesd.

jia tan

Posted 2019-03-16T13:39:13.250

Reputation: 1

Question was closed 2019-03-16T16:21:09.610

What version of Bitcoin Core are you using?Andrew Chow 2019-03-16T15:35:43.353

Answers

3

For the upcoming Bitcoin Core 0.18 release, the generate command has been deprecated and its functionality disabled. For the following major release, 0.19.0, the generate command has been removed entirely. This removal is already in the master branch of Bitcoin Core's source code. If you have built that branch from source, then the generate command does not exist.

Use generatetoaddress instead.

Andrew Chow

Posted 2019-03-16T13:39:13.250

Reputation: 40 910

It works! Thanks a lot ! Next time I'll search more carefully~Thank you for your patience.jia tan 2019-03-16T16:29:01.487