Bitcoin Forum
July 08, 2024, 12:50:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: enbale Regtest mode on: September 19, 2022, 02:05:41 PM
okay, I managed to download bitcoin core from source. I got a bitcoin folder, including all the stuff needed, in my home folder directory. It also works to run the regtest mode via:

Code:
...~ % bitcoin-cli -regtest ...

I created 101 blocks as well.

But now I want to connect to another node on the regtest mode so I am able to send him a freshly ''mined'' block. What do I have to do. What kind of new data directory do I have to setup and what files do I need? How do I do then the connection to this node?

2  Bitcoin / Bitcoin Technical Support / How to add a node in regtest mode via GUI? on: September 19, 2022, 09:23:28 AM
Hi guys,

I am in the regtest mode via the GUI of bitcoincore. How can I add here an extra node so I am able to send him a fresh mined block and check if he receives it?
Any help here to solve this issue ?

Thanks.
3  Bitcoin / Bitcoin Technical Support / Re: enbale Regtest mode on: September 19, 2022, 06:45:28 AM
sure but if I unpack the pre compiled version, the blockchain download starts. And I do not want to do this. Just using the regtest mode via the terminal with your stressed commands.
4  Bitcoin / Bitcoin Technical Support / enbale Regtest mode on: September 18, 2022, 06:04:49 PM
Hi guys,

I have to do the following task:

1. Compile Bitcoin Core (https://github.com/bitcoin/bitcoin). You can see doc/build-*.md for instructions on building the various elements.

2. Run the unit and functional tests. Instructions on how to do that can be found here: (https://github.com/bitcoin/bitcoin/blob/master/test/README.md).

3. Look at example_test.py in the functional test directory and try getting node 1 to mine another block, send it to node 2, and check that node 2 received it. In your response to this email, please include a link to a gist or code snippet that you used to complete this step.

Cause compiling is a bit difficult for me (I am new, sorry for that), I downloaded the pre compiled version of bitcoin core, including the dmg and tar.gz file. My thinking was that I am able to solve the above mentioned problem via the regtest mode. But how do I access do the regtest mode without bitcoin core starting with the initial blockchain download. I do not want to clutter up my mac with so much data. Just want to solve the problem and then delete all again cause it is not the device for operating a BTC fullnode.

Any help for this.

Thanks a lot.

5  Bitcoin / Bitcoin Technical Support / Re: Access testnet not possible on: September 18, 2022, 12:30:24 PM
Thank you for your response and the following may help you to understand my core problem.
My task was the following:

1. Compile Bitcoin Core (https://github.com/bitcoin/bitcoin). You can see doc/build-*.md for instructions on building the various elements.

2. Run the unit and functional tests. Instructions on how to do that can be found here: (https://github.com/bitcoin/bitcoin/blob/master/test/README.md).

3. Look at example_test.py in the functional test directory and try getting node 1 to mine another block, send it to node 2, and check that node 2 received it. In your response to this email, please include a link to a gist or code snippet that you used to complete this step.

Then I thought, I do not want to extra compile cause I had in mind that I am setting up already a Raspiblitz. Therefore I had my thoughts on doing this task on my raspiblitz but like you said it is not possible. Just compiling was a bit difficult for me so I downloaded the pre compiled version on my mac so I am able to access the regtest mode. Nevertheless I do not want to have the initial blockchain download started if I am unpack the bitcoin application because of the much required data space. The remaining problem still exist: Solving this task via regtest mode without cluttering up my laptop with data and slowing down the performance of my device.


6  Bitcoin / Bitcoin Technical Support / Re: How to switch in regtest Mode on: September 14, 2022, 07:50:25 AM
Do you have
Code:
daemon=1
regtest=1

in your bitcoin.conf file?

Also, since you are running raspiblitz I am not sure if there are any other changes needed. There should be none, but I don't know if there are any other custom config files that it added. I don't see any on my node but I have not tried regtest on it so I can't be 100% sure.

-Dave

Yes, indeed they have a bitcoin.conf file and I added the infos you mentioned but then:
Code:
bitcoind -regtest -daemon

Output:
Quote
EXCEPTION: NSt10filesystem7__cxx1116filesystem_errorE       
filesystem error: cannot create directories: Permission denied [/mnt/hdd/bitcoin/regtest/wallets]       
bitcoin in AppInit()       
7  Bitcoin / Bitcoin Technical Support / How to switch in regtest Mode on: September 13, 2022, 05:44:11 PM
Hello,

I am setting up a Bitcoin/Lightning node via raspiblitz on my Raspberry pi. I get access to it via my ssh connection on the mac terminal. How do I switch now in the regtest mode? If I am trying:
Code:
bitcoin-cli -regtest getnewaddress

I get the:
Output:
Quote
error: timeout on transient error: Could not connect to the server 127.0.0.1:18443

Make sure the bitcoind server is running and that you are connecting to the correct RPC port.


8  Bitcoin / Bitcoin Technical Support / Re: Access testnet not possible on: September 13, 2022, 03:56:47 PM
hm, I do not get it. Is it maybe not possible cause the initial blockchain synchronization is still on-going?
9  Bitcoin / Bitcoin Technical Support / Re: Access testnet not possible on: September 13, 2022, 02:43:18 PM
Thanks. I am trying it with regtest. But I got this error:

Code:
bitcoin-cli -regtest getnewaddress

Output:

Quote
error: timeout on transient error: Could not connect to the server 127.0.0.1:18443

Make sure the bitcoind server is running and that you are connecting to the correct RPC port.

I created a bitcoin.conf file as well. The file looks like:
Quote
[regtest]
txindex=1
server=1
rpcport=18444
rpcuser=bitcoin
rpcpassword=talk
connect=127.0.0.1:18444

And if I try it with:
Code:
bitcoind --chain=regtest

I got the error:
Quote
************************
EXCEPTION: NSt10filesystem7__cxx1116filesystem_errorE       
filesystem error: cannot create directories: Permission denied [/mnt/hdd/bitcoin/regtest/wallets]       
bitcoin in AppInit()     

What is wrong? I just want to run a regtest node while my full node is still syncing the original blockchain.


10  Bitcoin / Bitcoin Technical Support / Re: Access testnet not possible on: September 13, 2022, 01:50:21 PM
okay, I was getting this task from someone and they said  to me do it with a test framework. Look for hints at https://github.com/bitcoin/bitcoin/blob/master/test/functional/example_test.py. To be honest I do know what to do. So I was thinking of doing something with the testnet. But they said also it is not necessary. All you need is in bitcoin repository on Github.
11  Bitcoin / Bitcoin Technical Support / Re: Access testnet not possible on: September 13, 2022, 01:33:16 PM
ah okay, no I am not running a testnode. I was just thinking that bitcoin-cli -testnet is automatically  switching to a testnet mode then. But my main goal remains. Getting from my full/Lightning Node of Raspiblitz to a testnet node cause I have to execute this task: Getting node 1 to mine a block, send it to node 2 and check if node 2 received it.
all the stuff is running on a raspberry pi. Just working with the terminal on mac via ssh connection.
12  Bitcoin / Bitcoin Technical Support / Re: Access testnet not possible on: September 13, 2022, 01:22:32 PM
ah okay. But now this problem occurs:
Code:
bitcoin-cli -testnet listunspent

Output:
Quote
error: timeout on transient error: Could not connect to the server 127.0.0.1:18332

Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
13  Bitcoin / Bitcoin Technical Support / Re: Access testnet not possible on: September 13, 2022, 12:57:31 PM
Yeah, I know but it does not happening anything
Code:
bitcoin-cli -testnet
Output:
Quote
error: too few parameters (need at least command)
14  Bitcoin / Bitcoin Technical Support / Access testnet not possible on: September 13, 2022, 12:40:56 PM
Hi,

I am setting up a Bitcoin/Lightning node on Raspiblitz. The blockchain is currently syncing. Now I want to get access to the testnet cause I want to mine a block and send it to another node. But if I type
Code:
bitcoin-cli testnet
in the terminal I am getting the message:
Quote
error code: -32601
error message:
Method not found
. What do I wrong?
Best,
15  Bitcoin / Bitcoin Technical Support / Re: Delete BItcoin Core software on Mac via Terminal on: September 13, 2022, 08:13:06 AM
Thank you!
16  Bitcoin / Bitcoin Technical Support / Delete BItcoin Core software on Mac via Terminal on: September 13, 2022, 08:04:34 AM
Hello,

I am relatively new. I just cloned the bitcoin core software via
Code:
git clone https://github.com/bitcoin/bitcoin.git
in my MAC terminal. Where do I find all the packages and data related to this download in my Finder? I want to delete this whole download again. Or is there a command how I can delete all the data via a command in the Terminal? Thanks for your help.
Best,
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!