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.

167 questions
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
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
  • 7
4
votes
1 answer

How to setup bitcoin network using regtest?

My question might seem really basic , but I am looking for help as to how can I setup bitcoin network using regtest?
Nikhil Jain
  • 171
  • 6
2
votes
1 answer

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 nodes (using a genesis block or something) to hold…
Shubham Saxena
  • 139
  • 1
  • 8
2
votes
1 answer

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 2N3V4PeQXoD6TFM9ZvDMX81kzbuNtc5YPW4 1 and get: error code: -6 error…
relG
  • 290
  • 2
  • 12
2
votes
1 answer

Will bitcoin core in regtest mode still download and run mainnet blockchain?

I’d like a very light full node in a docker container used on developer laptop to establish the development environment. If I install bitcoin core in Ubuntu in Docker and configure it to run in regtest mode, will I avoid downloading full mainnet…
Meglio
  • 289
  • 1
  • 9
2
votes
0 answers

How can I efficiently build a near-full block in regtest?

I want to build near-full blocks in regtest. I have written a script that does the job (on bitcoin core v24.0rc3), but it's too slow to be practical for my use case: #!/usr/bin/env bash BCLI="./bitcoin-cli -regtest" DAEMON="./bitcoind -regtest" #…
Kalle Rosenbaum
  • 528
  • 2
  • 15
1
vote
1 answer

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 python miner that I constructed. However, the…
Dennis
  • 11
  • 1
1
vote
1 answer

Sending bitcoins in regtest to client

I have bitcoind hosted on a local machine and I would like to set up a remote client to do some bitcoin URI testing on another local machine. I have Bitcoin-QT installed on the client and updated client bitcoin.conf as…
Alex
  • 21
  • 2
1
vote
1 answer

How to catch the fees on regtest mode?

I'm developing on regtest mode and it seems that the fees I specify in every transaction are not included on every new mined block (generate). I only view (listunspent) a new 50 btc coinbase utxo at the miner node. So how can I catch the fees on…
joe.js
  • 592
  • 3
  • 14
0
votes
1 answer

running regtest network, bitcoin.conf incorrectly configured?

This is what happens after I run this command bitcoind --regtest --printtoconsole, my guess is that it's something to do with bitcoin.conf My bitcoin.conf file looks like this:…
smatthewenglish
  • 1,133
  • 10
  • 23
0
votes
1 answer

BIP68 does not apply on regtest

On regtest, I can use generateblock to successfully a mine transaction i.e containing an input with nSequence (0x05000000), although the input has not reached the specified age (5 confirmations). Though I get non-BIP68-final (code -26) error when I…
Burak
  • 186
  • 6