Show Posts
|
Pages: [1]
|
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: ...~ % 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?
|
|
|
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.
|
|
|
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.
|
|
|
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.
|
|
|
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.
|
|
|
Do you have 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: bitcoind -regtest -daemon
Output: EXCEPTION: NSt10filesystem7__cxx1116filesystem_errorE filesystem error: cannot create directories: Permission denied [/mnt/hdd/bitcoin/regtest/wallets] bitcoin in AppInit()
|
|
|
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: bitcoin-cli -regtest getnewaddress
I get the: Output: 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.
|
|
|
hm, I do not get it. Is it maybe not possible cause the initial blockchain synchronization is still on-going?
|
|
|
Thanks. I am trying it with regtest. But I got this error: bitcoin-cli -regtest getnewaddress Output: 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: [regtest] txindex=1 server=1 rpcport=18444 rpcuser=bitcoin rpcpassword=talk connect=127.0.0.1:18444
And if I try it with: I got the error: ************************ 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.
|
|
|
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.
|
|
|
ah okay. But now this problem occurs: bitcoin-cli -testnet listunspent Output: 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.
|
|
|
Yeah, I know but it does not happening anything Output: error: too few parameters (need at least command)
|
|
|
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 in the terminal I am getting the message: error code: -32601 error message: Method not found . What do I wrong? Best,
|
|
|
Hello, I am relatively new. I just cloned the bitcoin core software via 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,
|
|
|
|