Bitcoin Core Advanced Discussion

I generated 500 more blocks, and I am wondering how to restart regtest for a new blockchain so I can follow along better with the videos.

same here was going to write a new reply to thread but noticed you did already.

I installed bitcoin core according to your course Ivanā€¦ The node takes too much resources in my Mac I wanna remove the 250Giga Bitcoin node data from my laptop, it is literally heating the driveā€¦
I didnā€™t find any reliable instruction on the web :frowning: Can u please advise and help remove the node?

@ivan can you help me out here?

Can anyone help me? I cannot generate block on Bitcoin-cli regtest. By using the following command, ./bitcoin-cli -regtest generate 101 I get the following error:

error code: -32601
error message: Method not found

Did I enter it wrong?
Bitcoind regtest was running at the time

Nevermind, I found the answer above

2 Likes

Hi all,
When I try to introduce this command daemon> ./bitcoin-cli -regtest generate 101
I get the following error: error code: -32601
error message:
Method not found
I get the following message on my bitcoind - Adding fixed seed nodes as DNS doesnā€™t seem to be available.
What am I doing wrong? Can anyone help please?

Thanks

Tried this and I get the following error?
error code: -5
error message:
Error: Invalid address

Can anyone help please?
Thanks

Tetemtotem answer worked for me. Thanks

1 Like

Hey, @4-Freedom, if you havenā€™t figured this out yet,
according to the Developers examples website mentioned in the classā€¦

" Regtest wallets and block chain state (chainstate) are saved in the regtest subdirectory of the Bitcoin Core configuration directory. You can safely delete the regtest subdirectory and restart Bitcoin Core to start a new regtest. (See the Developer Examples Introduction for default configuration directory locations on various operating systems. Always back up mainnet wallets before performing dangerous operations such as deleting.)"

Hope this helps.

Hey @ivan, Iā€™m currently downloading the blockchain. Can I still start another copy of bitcoind in regtest mode and do the cli commands while the mainnet blockchain is downloading or do I need to wait for it?
Thanks!

You can abort downloading the blockchain if you only wanna use regtest

1 Like

Hi,
im getting an error message when i try to generate new blocks on regtest:
PS C:\Program Files\Bitcoin\daemon> ./bitcoin-cli -regtest generate 101
error code: -32601
error message:
Method not found

Close bitcoind and open again like this:

./bitcoind -regtest -deprecatedrpc=generate

Then try again on bitcoin-cli

Hi Fabrice,
I test the way wou write but m getting the same results:

PS C:\Program Files\Bitcoin\daemon> ./bitcoin-cli -regtest generate 101
error code: -32601
error message:
Method not found

Strange, I just checked and it works for me.

Are you using powershell (admin)?
If you hit windows logo button + x
Then powershell (admin)
Then cd ā€˜ā€˜c:\Programā€¦ Deamonā€™ā€™
Then
./bitcoind -regtest -deprecatedrpc=generate

Open second powershell (admin) window

Go to correct folder with cd ā€˜ā€˜c:\progā€¦ Deamonā€™ā€™

./bitcoin-cli -regtest generate 101

Your error seems to not recognize generate.
Can you do other things? Like getnewaddress?

Hi Fabrice,
Yes i get new address, balanceā€¦ im attaching a screen shot to seeā€¦

Just stick it in the trash and delete it :slight_smile:

I am having trouble generating my 101 blocks in my regtest. I keep getting an error message (code -32601) saying ā€œMethod not foundā€.

I have the bitcoind regtest printtoconsole running, and have created an address, and have typed in the correct information in the powershield ./bitcoin-cli -regtest generate 101

Any help on this is much appreciated.

Nevermind on this. I figured it out. The video is using the old version to generate the regtest blocks. The new command is " ./bitcoin-cli -regtest generate to address 101 ā€œyouraddressā€

3 Likes