To generate new coins

PS C:\Program Files\Bitcoin\daemon> ./bitcoin-cli -regtest generate 1
error code: -32
error message:
The wallet generate rpc method is deprecated and will be fully removed in v0.19. To use generate in v0.18, restart bitcoind with -deprecatedrpc=generate.
Clients should transition to using the node rpc method generatetoaddress

close bitcoind and restart by adding - deprecatedrpc=generate at the end.
. /Bitcoind - regtest -deprecatedrpc=generate

1 Like

Hi,
That worked fine-thanks for your help.

Keith1

1 Like

Also, check my answer in this thread to use the new standard way to generate blocks instead of this depricated way. We will update the course soon so that the course shows the new way only.

1 Like