Questions tagged [regtest]

The Bitcoin Core client provides a "regtest" mode that can be used by software developers to safely perform software tests such as regression tests.

This tag is meant for questions regarding the use of the Bitcoin Core client in -regtest mode.

161 questions
16
votes
2 answers

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 blockchain at their whim by mining a ton of blocks. Are…
Michael Folkson
  • 14,337
  • 3
  • 11
  • 45
11
votes
4 answers

Bitcoin is not connected in regtest mode

I am having trouble using regtest mode on Linux. Using pre-compiled version 0.9.2.1 for linux and starting regtest mode as instructed on bitcoin.org: -linux/bin/64>> ./bitcoind -regtest -daemon The server starts but doing a getinfo…
Joe M
  • 171
  • 1
  • 4
10
votes
1 answer

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 are seem to not being found.
zhiyan114
  • 666
  • 7
  • 24
9
votes
3 answers

Testing blockchain forks

I want to test if a service can manage a blockchain fork. However there is no way to get bitcoind to create test forks under the regtest mode. I've tried modifying it to generate blocks with arbitrary prevblock hashes but it is not easy due to the…
8
votes
1 answer

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 in a loop etc. What is the bare minimum I need to…
user3074620
  • 218
  • 1
  • 5
8
votes
1 answer

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.
meotimdihia
  • 193
  • 5
8
votes
3 answers

Valid fork in regtest - Change blockchain via RPC?

I've created a regtest network consisting of 2 nodes - node0 & node1. I'd like to have a fork on the common blockchain and seemingly achieved it by doing so: nodes start node0 adds node1 via addnode node0 generates 1 block with hash 4dac... node1…
Aliakbar Ahmadi
  • 1,625
  • 1
  • 11
  • 22
7
votes
1 answer

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 communicate with other nodes and that both have an…
John Little
  • 183
  • 6
7
votes
1 answer

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 and more details I am writing a blockchain…
7
votes
1 answer

Receive money in regtest mode

I am working on a app in which my project communicates with the bitcoin server to get the details of a transaction with transaction id as the parameter. I have bitcoind, bitcoin-cli and bitcoin-qt installed on my system. When I run the bitcoin-qt in…
plbit
  • 173
  • 1
  • 5
7
votes
1 answer

Is it possible to create bitcoind regtest network on Ubuntu (which itself is on Virtualbox)?

I am getting into Bitcoin development and it seems that bitcoin regtest mode is perfect for testing our applications. I am trying to create a network, following Fred Tingey's answer but, unfortunately, it's not working. I need suggestions, what…
sbaha88
  • 71
  • 1
  • 4
6
votes
1 answer

bech32 addresses beginning with "bcrt..." on regtest

I'm playing around with regtest and wanted to generate a bech32 address. My Bitcoin Core version is 0.18.0. I ran getnewaddress "" bech32 and got an address that began with bcrt, like this one : bcrt1qs758ursh4q9z627kt3pp5yysm78ddny6txaqgw. I'm a…
Sosthène
  • 613
  • 3
  • 13
6
votes
2 answers

Connecting two local nodes in RegTest

I am trying to connect two local regtest nodes together. I am able to run one regtest node without any issues, and am also able to run the bitcoin-cli commands such as generate to create my own chain, however when I try to start a new node, I'm not…
omzy
  • 61
  • 3
6
votes
1 answer

How to use bitcoinjs-lib with Regtest?

I was trying to use the bitcoinjs-lib (1) with my regtest network. More specifically I was trying to build a tx with TransactionBuilder but it gave me a 'transaction has no matching Script' exception. In a closed github issue (2) I find out that…
joe.js
  • 582
  • 3
  • 14
6
votes
3 answers

Open-source blockchain explorer for regtest mode

I'm trying to find an open-source Bitcoin blockchain explorer that will work in regtest mode, so I can more easily inspect the blockchain, see what transactions are getting processed and included, etc. I found the following ones, but all of them…
Alin Tomescu
  • 1,327
  • 8
  • 29
1
2 3
10 11