Questions tagged [regtest]

When running Bitcoin Core client in regtest mode.

Filter by
Sorted by
Tagged with
5
votes
2answers
138 views

What are the key differences between regtest and the proposed signet?

What are the key differences between regtest and the proposed signet? One of the key differences is that using regtest is not ideal for public networks as anyone anywhere can just rewrite the ...
3
votes
0answers
14 views

How can I force estimatesmartfee to return estimates on regtest?

Creating an app that utilizes estimatesmartfee, and it works in production, but I use regtest for automated testing and can't get it to return a value. Looking at bitcoind tests it is splitting UTXOs ...
0
votes
0answers
15 views

Could not open socket for incoming connections

I am fairly new to bitcoin and was trying to set up a local regtest network with four nodes in the same machine by having different configuration file for each node. However when I try to bring up a ...
2
votes
1answer
28 views

How can I fund my node in regtest?

I am fairly new to bitcoin and was attempting to setup a local test network in my machine. I am using the regtest network to create the local network. Is there a way in which I can initialize the ...
0
votes
0answers
21 views

How can I seperate the RPC server from the -proxy option in regtest?

I'm using a SOCKS5 proxy for bandwidth throttling and custom latency. How do I run bitcoind such that only node connections go through the proxy, but JSON-RPC does not? The proxy is on localhost, and ...
1
vote
0answers
18 views

bitcoin-cli is not using port specified in config

I have setup a bitcoin node in regtest mode with custom config and datadir. I start bittcoind with command: bitcoind -conf=bitcoin-demo.conf -regtest -datadir="testdatabtc" -daemon My bitcoin-...
1
vote
0answers
32 views

how do I mark coins spent in invalid blocks as unspent?

I was just testing bitcoin (v17) in regtest mode with the local, built-in wallet. If I send money to an address (I don't own), generate 1, and then invalidate that block, the local wallet does not ...
0
votes
1answer
45 views

Implement HTLC manually by writing scripts

Is there any way to implement HTLC manually for locking funds in the channels in lightning network for a period of time (by setting intervals) and releasing the funds after the time lock expired using ...
4
votes
1answer
86 views

Can I test Lightning on Bitcoin regtest?

I want to do some Lightning experiments, but want to avoid the burden of synchronizing the blockchain (even testnet). Can I experiment with Lightning using regtest? Is there a manual for setting it up?...
1
vote
0answers
39 views

Error mandatory-script-verify-flag-failed (Signature is found in scriptCode)

I found a few questions with the specific error, but couldn't find also the appropriate answer. So, here I am. I am working on regtest in a Python library that create transactions and then use JSON-...
1
vote
1answer
42 views

Create a transaction spendable in a specific block height

I am new in Bitcoin and I try to create an address in Bitcoind and send a transaction that the amount will be spendable in a specific height of the blockchain. Here is what I have done: privateKey = ...
0
votes
0answers
63 views

Create a multi user web wallet using bitcoind RPC call

I just a beginner in bitcoin technology.I planning to create a multi user bitcoin web wallet using a VPS full node setup(Not use minig). I read the RPC documentation and found something for archiving ...
1
vote
1answer
58 views

How do I connect my `bcoin` wallet to `bitcoind`?

I have bitcoind running in regtest mode. I want to connect my bcoin wallet to it and retrieve all UTXOs relevant to the sender's address. How can I do that?
1
vote
1answer
89 views

How to run a private bitcoin network with low difficulty?

I want to test and develop an open source mining pool. I don't have access to an ASIC miner or GPU, so I have to use my CPU to simulate mining and see how the pool really works. The problem is the ...
0
votes
1answer
129 views

regtest: ERROR: ProcessNewBlock: AcceptBlock FAILED: unexpected witness data found (code 16) on v0.14.3

I have two bitcoind regtest processes; v0.16.3 and v0.14.3. I got "unexpected witness data found (code 16)" when v0.14.3 node try to received a block from the peer (v0.16.3) How can I fix it? (I'm ...
0
votes
1answer
96 views

address in listaddressgroupings and getnewaddress

I don't understand the differents between listaddressgroupings and getnewaddress For example, I have a local blockchain ( regtest ) with 0 Block. I create 101 block (generate 101) I can see with ...
1
vote
1answer
146 views

How to perform automated mining in regtest mode?

I'm trying to setup a private network of bitcoin nodes for testing and experimentation. From what i understand, i have two choices while setting up a network: I can run bitcoind -testnet and connect ...
0
votes
1answer
73 views

Is there a way to create 9995000 spendable BTC on regtest?

I'm doing to a large stress test on 1000 node network where each node sends transactions to one another at a specific rate, and I need a way to create the funds for running it, enough so that each ...
0
votes
1answer
56 views

Is there a maximum balance that a single address can hold?

Is there a maximum number of satoshis that a single address can control at a single time? I ask because when I generate regtest blocks to a single address, it's balance gets stuck at 1494999998350 ...
0
votes
1answer
107 views

Private key only wallet for Bitcoin Core regtest

I'm running a private regtest network on GCP. I generated a list of 2000 vanity testnet addresses ordered sequentially from prefixes mooo1 to n2ooo with their respective pub/priv key pairs, and to ...
2
votes
1answer
244 views

bitcoin node: what is the difference between simnet and regtest?

btcd, and presumably other bitcoin node implementations, seem to have 4 network options: mainnet testnet regtest simnet. I get that mainnet and testnet both are "public" in that your node will ...
1
vote
1answer
34 views

Is it okay to run regtest for dev purposes while simultaneously running a node on mainnet (bitcoind)?

Hope it won't mess anything up on my mainnet node.
3
votes
1answer
187 views

addnode in bitcoin.conf doesn't work (Regtest mode)

I'm trying to make to nodes on the same computer communicate. I set up two bitcoin folder with two bitcoin.conf files. bitcoin.conf in the second node is the following: rpcuser=bitcoinrpc ...
0
votes
1answer
194 views

Where does the mining reward in regtest go?

After using the bitcoind -regtest generate 1 command, where does the mining reward go? I tried list accounts and check balance for account "", but the balance always showed 0.000000.
0
votes
1answer
237 views

Confirm transaction in regtest mode

I'm testing some wallet features on regtest. Here's the sequence so far: cash-cli -regtest generate 101 cash-cli -regtest getbalance 500.00000000 cash-cli -regtest getnewaddress newAddress1 ...
0
votes
1answer
40 views

verifying my modifications to bitcoind w/o broadcasting anything

I want to verify that my updates to the bitcoind source code don't break anything. One way that I thought of doing that was through loading the mainnet data into a regtest instance. To do that I first ...
0
votes
0answers
71 views

Creating lage blocks with multiple transactions in regtest mode?

I want to create blocks with multiple transactions in regtest mode. I want to test propagation with blocks of size 1-2 MB on the dash network. ./dash-cli -regtest -daemon -debug -port=8330 -rpcport=...
2
votes
2answers
426 views

Bitcoin regtest mining

I wonder if I can do mining with Bitcoin-0.16.1 in regtest mode, just for simulating mainnet situation where there are new blocks coming in constantly. I am aware that I can use generate to generate ...
2
votes
0answers
90 views

What are segwit extended key prefix bytes for regtest?

I need the HD version bytes for equivalent of ypub, zpub, Ypub, Zpub but on the regtest network. I also need Ypub on testnet. All the rest I can find in slip132, but it is incomplete. thanks.
1
vote
1answer
295 views

Connecting to Regtest

I want to connect to a local node that I have set up in regtest mode using bitcoind. The node I am connection from is non bitcoind and I need to set the port that I want the peer discovery to take ...
1
vote
1answer
199 views

Bitcoind Cannot assign requested address

I'm trying to run a regtest bitcoind node but I'm always receiving the following error connect() to [2a05:d01c:a35:2902:6e18:7290:ff27:e9aa]:18444 failed: Cannot assign requested address (99) ...
1
vote
1answer
620 views

Error: Keypool ran out, please call keypoolrefill first

After setting the dash-client in regtest mode, I am trying to generate coins. No matter what I do, I get the above error. When I run: dash-cli -regtest getmininginfo I get the below output: { ...
2
votes
1answer
328 views

How does bitcoin functional test framework work?

Could someone explain how and where in the code the bitcoin test framework calls map to C++ bitcoin core code or RPC calls such that regression suite tests the bitcoin core functionality? Background ...
4
votes
1answer
142 views

Bitcoin regtest mode block versions

I'm running a bitcoind instance in regtest mode, for automated testing purposes. I'm having trouble with the fact that the blocks I mine are version 1 blocks, which lack the block height in the ...
2
votes
0answers
136 views

Blockchain explorer for regtest mode

I'm looking for a Bitcoin blockchain explorer that will work in "regtest mode", mostly for demo proposes. Any suggestions?
1
vote
0answers
640 views

How to get all transactions of address with bitcoin api in node.js?

I want to find all transactions of address in regtest. How it is possible to do? I have this solution, but I get response (201) before for ends. I think it's bitcoin timeout false. bitcoin....
3
votes
1answer
2k views

Difference between regtest and testnet

I'm not sure what is the difference between regtest and testnet, they seem are different things but i cant find the different between them. Does one have more stuff than others? On the regtest, peer ...
2
votes
1answer
178 views

Regtest automated peer discovery

I want to test peer discovery in regtest mode of bitcoin core, running in Docker. However, I noticed in the source code of bitcoin core that there is a check if the address is routable before ...
1
vote
0answers
263 views

getpeerinfo peer port number

Working on regtest (Bitcoin Core 0.15.1) I've realized that some peers are identified just by ip instead of by ip:port when querying bitcoin-cli getpeerinfo. I've noticed that when it happens the ...
2
votes
1answer
433 views

Why cant my Altcoin Regnet create first 100 blocks?

I have modified bitcoin source code for my altcoin. I have successfully created genesis block, merkel root, noonce and daemon is working well. I have tweaked number of coins per day, total coins etc.. ...
0
votes
3answers
296 views

How are Bitcoin Core GUI nodes properly connected and disconnected in regtest mode?

I'm trying to set up a private Bitcoin network using Bitcoin Core in regtest mode. However, there are two problems: the port reported by the Bitcoin Core GUI doesn't match the one the node is running ...
0
votes
0answers
46 views

How it is possible to wrap with BitcoinJ a Bitcoin Core RPC interface and drives regtest mode

Despite the fact that I have already create an address in regtest network which has Bitcoins I can not import correctly this address to my BitcoinJ app in order to execute certain functions(OP_CODE tx,...
1
vote
1answer
285 views

Does bitcoind not support txindex=1 option in regtest mode?

Is it possible to specify txindex=1 option in bitcoin.conf or elsewhere? It doesn't seem to work. Whenever I run bitcoind -daemon, it stops. If I remove txindex=1 from the conf file, it works. I ...
0
votes
1answer
91 views

Can I use run Bitcoin Core in regtest mode in v0.8.1?

I'm trying to run bitcoin-core v0.8.1 in regtest mode, but it doesn't work. When placing regtest=1 in bitcoin.conf it starts to sync the mainnet. I've not seen anything related in the code. So I was ...
2
votes
1answer
1k views

How to check my address balance in regtest?

I have created a regtest address and I want to check it's balance. I have run the commands: -regtest generate 101 -regtest getbalance -regtest sendtoaddress n4MN27Lk7Yh3pwfjCiAbRXtRVjs4Uk67fG 10.00 -...
0
votes
1answer
591 views

Create an OP_RETURN tx and validate it's existence in Regtest

A part of my MSc thesis is storing the hash of a string with OP_RETURN tx in the Blockchain to exist as a proof. My main concerns are: -how can i send this tx successfully to my regtest network -...
6
votes
1answer
995 views

How do I reset bitcoin regtest mode?

Does anyone know how to reset everything in regtest mode? I want to reset my balance and all transactions.
1
vote
1answer
64 views

Regtest not paying address in mined block

I have set up a local 5 node bitcoind regtest network with unique ports using compiled bitcoin core 14.2. I can generate blocks, send transactions between nodes, and mine those transactions using a ...
2
votes
2answers
243 views

Double spending on testnet or regtest?

I'm currently doing a research on bitcoin and I would like to know if there is anyway to replicate double spending in the testnet or regtest? If isn't possible is there any other type of "attacks" ...
1
vote
1answer
4k views

manually signing bitcoin transaction

I'm trying to create a BTC transaction with one input and two outputs, one for change and one OP_RETURN to anchor data. And I'm doing all of that on my regtest backend. The raw unsigned transaction is ...