Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [regtest]

When running Bitcoin Core client in regtest mode.

0
votes
1answer
20 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
70 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
30 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
31 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
47 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 ...
0
votes
0answers
29 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
58 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
94 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
73 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
75 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
56 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
51 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
72 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
0answers
171 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
30 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
154 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
156 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
173 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
38 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
62 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
334 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
73 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.
0
votes
1answer
234 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
188 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
531 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
275 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
134 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
133 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?
0
votes
0answers
567 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
1k 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
162 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
246 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
412 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
286 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
42 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
276 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
87 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
530 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
921 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
62 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
221 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 ...
1
vote
1answer
1k views

regtest method not found

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 ...
5
votes
1answer
821 views

Creating Mining Competition on regtest

As we know , Bitcoin core-Regtest is used to set up our own blockchain starting from Genesis Block. I have created Two nodes on my localhost running on different ports (I am using Windows 8.1). They ...
1
vote
1answer
287 views

How can I see or validate mining in regtest mode?

I can generate new blocks using generate number_of_blocks_that_you_want. I have 2 nodes running on regtest mode. I sent few coins from one node(wallet) to another. Transaction successful. Status it ...
2
votes
1answer
1k views

Windows 7 : Unable to start bitcoin server using daemon in regtest : bitcoind -regtest -daemon

I am trying to start bitcoin server in regtest mode using bitcoind -regtest -daemon command on my windows 7 operating system. Error I am getting is daemon is not supported on this operating system. ...
1
vote
1answer
569 views

How to get money when using regtest

I want to experiment in the regtest network. But I don't understand how I can get funds to play with. I did: bitcoind -regtest -daemon bitcoin-cli -regtest sendtoaddress ...
1
vote
1answer
853 views

Unable to locate bitcoin.conf in linux

I am new to bitcoin network but I have spent significant time with ethereum. For getting started with bitcoin I referred running a full node and Developer documentation- Regtest Mode. After ...
1
vote
0answers
436 views

“Error: Invalid RPC method” when i try to create block in regtest mode

I use Ubuntu. After i run bitcoind -regtest -daemon I tried to create blocks by running command: bitcoin-cli -regtest generate 101 And it returned error like this: Error: Invalid RPC method ...