Skip to main content
13 votes
Accepted

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

The main difference between signet and regtest is that signet is an actual network, as opposed to a sandboxed environment. In regtest, the network topology is entirely manual. You spin up nodes, and ...
Pieter Wuille's user avatar
12 votes
Accepted

Difference between regtest and testnet

Regtest is a network designed solely to be private and for testing only. You can create a private regtest network and do testing and experimentation with it. It is not a public network and has no ...
Ava Chow's user avatar
  • 70.9k
10 votes

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

Signet is more comparable to testnet than it is to regtest. Regtest is for private use and testing things. Even if signet were available, it is still useful to have your own blockchain for testing ...
Ava Chow's user avatar
  • 70.9k
9 votes
Accepted

How do I get set up on Signet?

I will assume that you want to get set up on the default Signet that is administered by Kalle Alm and AJ Towns. (You can also set up your own custom Signet network and administer it yourself but the ...
Michael Folkson's user avatar
8 votes
Accepted

How do I reset bitcoin regtest mode?

Delete the Bitcoin Core datadir: Linux ~/.bitcoin/regtest directory. Windows %appdata%\bitcoin\regtest directory. MacOS $HOME/Library/Application Support/Bitcoin/regtest directory.
Claris's user avatar
  • 15.4k
8 votes
Accepted

How does bitcoin functional test framework work?

The functional tests test the RPCs. The unit tests test the C++ code directly by calling the functions. The functional test frameworks uses a version of python-bitcoinrpc which can be found here. ...
Ava Chow's user avatar
  • 70.9k
8 votes
Accepted

Can you break down what data is encoded into a bech32 address?

Bech32 addresses are defined in BIP 173. This slide is taken from Pieter Wuille's presentation on bech32 at SF Bitcoin Devs in March 2017. Different prefixes A list of address prefixes on the Bitcoin ...
Michael Folkson's user avatar
7 votes
Accepted

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

Regtest and testnet are different networks. They are not compatible with each other. Regtest is a private local network which is used solely for testing. It is primarily used for the regression tests,...
Ava Chow's user avatar
  • 70.9k
7 votes
Accepted

Testing pruning logic with bitcoind

There is the test-only -fastprune bitcoind option, which results in a much smaller maximum blockfile size (16 kb) and a lower minimum prune height. If that option is used, you could just bitcoin-cli -...
Lightlike's user avatar
  • 636
6 votes
Accepted

trouble with bitcoin cli regtest

It seems you're mixing up bitcoind and bitcoin-cli. bitcoind is the Bitcoin Core daemon. It must be running first before you can do anything. bitcoin-cli is a tool to send RPC commands to a running ...
Pieter Wuille's user avatar
6 votes
Accepted

Why is "regtest" called "regtest"?

It stands for "regression test". As you can see here: Regtest Regression test mode A local testing environment in which developers can almost instantly generate blocks on demand for testing ...
Thorkil Værge's user avatar
5 votes
Accepted

Is there any way to experiment with the Bitcoin technology without having to buy actual bitcoins for use on the larger bitcoin network?

Yes. You can run bitcoind in regtest mode. In that mode, you can produce your own "bitcoins" for testing purposes.
rny's user avatar
  • 2,428
5 votes
Accepted

Bitcoin regtest mining

You can build your miner with a bash command: $ while true; do bitcoin-cli -regtest generate 1; sleep 300; done You'l get a block every 5'. If you want a better simulation of mainnet you could use a ...
the9ull's user avatar
  • 86
5 votes
Accepted

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

Nope. Not 1 bit. A balance (in this context) is the sum of all UTXO's for a given address. There is no limit on the number of UTXO's or their total amount (from the perspective of how the blockchain ...
cleanmarker's user avatar
5 votes
Accepted

Cannot call rpc api from other machine in same local network

The problem is that you apply wrong options values for -rpcallowip and -rpcbind. -rpcbind=127.0.0.1 This one tells bitcoind to bind RCP server to 127.0.0.1(localhost). That means it will be ...
Slavik Svyrydiuk's user avatar
5 votes

Why do you have to mine 432 blocks to activate segwit on regtest?

Note that since 0.16, Segwit is always active on regtest from the genesis block. Prior to 0.16, Segwit on regtest is defined to have a start time of 0 and can be activated through the BIP 9 ...
Ava Chow's user avatar
  • 70.9k
4 votes
Accepted

Open-source blockchain explorer for regtest mode

I managed to point Abe to regtest just by using datadir=/home/$USER/.bitcoin/regtest in the config file and following the official instructions.
eduardo's user avatar
  • 56
4 votes
Accepted

How can I fund my node in regtest?

No, there does not such thing as initialfreecoins=10000000. However mining on regtest is not resource hungry and nearly instant. It's the only way to get coins. To get coins on regtest you first need ...
0xb10c's user avatar
  • 1,440
4 votes
Accepted

How to use Electrum with a local regtest network?

Electrum doesn't connect directly to Bitcoin nodes. Instead it connects to Electrum servers using the Electrum protocol. These servers run Bitcoin nodes and additional Electrum server software in ...
Ava Chow's user avatar
  • 70.9k
4 votes
Accepted

bitcoin regtest listunspent generated with zero amount

Coinbase transaction outputs from blocks that have not been buried by 100 blocks cannot be spent. Such outputs are listed in the wallet as "immature", and shown as having 0 value. Generate ...
Pieter Wuille's user avatar
3 votes
Accepted

After bitcoin-cli -regtest -sendtoaddress "address" That address's balance is always 0

If you go through the documentation, the getbalance command can take arguments for an account name, but not an address. I see that you are trying to get the balance for an address. On blockchain, ...
Kalyan Kumar's user avatar
3 votes
Accepted

How to catch the fees on regtest mode?

I guess you are missing the coinbase immaturity here. Coinbase transaction can only be spent after 100 blocks. A single generate will not make the coinbase-transaction appear in listunspent. If you do ...
Jonas Schnelli's user avatar
3 votes

Connecting two local nodes in RegTest

It seems to me that the ports aren't matching: You've set your first node to port=8333 and your second node to port=8330. However, you've called addnode with …18332. Maybe that's it?
Murch's user avatar
  • 75.9k
3 votes
Accepted

How to get money when using regtest

Just generate some blocks. bitcoin-cli -regtest generate 101 You will have them in your wallet and can use the funds once confirmed. 101 is the number of blocks to create. You can use any integer ...
q9f's user avatar
  • 1,445
3 votes

How to use bitcoinjs-lib with Regtest?

Oops! Noob mistake. I thought that testnet and regtest had different version prefixes (not compatible) but they are (the bitcoin wiki and bitcoin developers page doesn't clarify this, though). So I ...
joe.js's user avatar
  • 592
3 votes
Accepted

Bitcoin regtest mode block versions

BIP 34 (the BIP that specifies block version 2 and block heights in coinbases) is not activated on regtest and is never activated. How do block versions work in regtest mode? Block versions are ...
Ava Chow's user avatar
  • 70.9k
3 votes

Bitcoin regtest mining

I am answering my own question for those who run into the same situation and for the sake of knowledge sharing. YES you can mine on a regtest network. The difficulty of mining on regtest is extremely ...
3tbraden's user avatar
  • 239
3 votes
Accepted

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

This is not possible because the regtest network is limited to 15000 regtest BTC. Unlike mainnet and testnet, it's halving interval is 150 blocks which limits the number of regtest BTC on one chain to ...
Ava Chow's user avatar
  • 70.9k

Only top scored, non community-wiki answers of a minimum length are eligible