12
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 ...
11
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 ...
9
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 ...
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.
8
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 ...
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 ...
7
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. ...
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,...
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 -...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
4
votes
Adding fixed seed nodes as DNS doesn't seem to be available
The message means that no DNS seeds were found (which is normal, as regtest has no DNS seeds), and thus that it will fall back to its builtin list of fixed seed nodes (which regtest has 0 of).
In ...
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.
4
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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?
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 ...
3
votes
Unexpected coinbasevalue in regtest mode
In regtest mode, the block reward halves every 150 blocks instead of every 210000 blocks. See the consensus.nSubsidyHalvingInterval settings in chainparams.cpp.
3
votes
Bitcoin is not connected in regtest mode
I would like to make an addition to above answers.
Instead of -connect=ip the correct option to use is -addnode=ip. -connect lets a node connect only to one node and whereas '-addnode' attempts at ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
regtest × 163bitcoind × 55
bitcoin-core × 27
testnet × 25
bitcoin-cli × 19
json-rpc × 14
testing × 8
signet × 8
wallet × 6
bitcoin-core-development × 6
python × 6
transaction-fees × 5
lightning-network × 5
segregated-witness × 5
network × 5
bitcoin.conf × 5
core-lightning × 5
transactions × 4
blockchain × 4
address × 4
miner-configuration × 4
bitcoinj × 4
block × 3
multi-signature × 3
blockchain-fork × 3