regtest method not found

1

1

I have alredy looked at a lot of other similar questions here but they didn't involve my case or the solutions provided did not work for me. I'm trying to work in regtest mode and I'm using bitcoin core v0.15.0 on a Debian machine. My bitcoin.conf file looks like this:

$HOME/.bitcoin/bitcoin.conf ->
rpcuser=bitcoinrpc
rpcpassword=7bljxv........zabyi

I run the command

bitcoind -regtest -daemon

And then

bitcoin-cli -regtest getblockchaininfo

And it works fine, but if I try to run the following command:

bitcoin-cli -regtest generate 101

I get the following error:

error code: -32601
error message:
Method not found

Ivano Donadi

Posted 2017-08-16T15:25:52.487

Reputation: 219

Answers

1

Do you have wallet enabled? generate is a wallet RPC now since it needs to get an address from the wallet. If wallets are disabled, then generate will not work. If you want to mine without wallets being enabled, use generatetoaddress.

Andrew Chow

Posted 2017-08-16T15:25:52.487

Reputation: 40 910

Thanks, I built bitcoin from source and I had misunderstood the consequences of --disable-walletIvano Donadi 2017-08-16T19:44:11.060