mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-07 16:06:26 +00:00
Chapter 15 improvements
This commit is contained in:
parent
4f1cb3ed52
commit
ae7f716a0a
@ -7,15 +7,23 @@ Bitcoin Core’s regression test mode (regtest mode) lets you instantly create a
|
|||||||
|
|
||||||
## Starting Bitcoind in Regtest Mode
|
## Starting Bitcoind in Regtest Mode
|
||||||
|
|
||||||
To start your Bitcoind (Bitcoin Daemon) in Regtest mode and create a private Blockchain, you have to use the following command:
|
After [setting up your Bitcoin-Core VPS](02_0_Setting_Up_a_Bitcoin-Core_VPS.md), you are now able to use the Regtest mode. To start Bitcoind (Bitcoin Daemon) in Regtest mode and create a private Blockchain, you have to use the following command:
|
||||||
```
|
```
|
||||||
$ bitcoind -regtest -daemon
|
$ bitcoind -regtest -daemon
|
||||||
```
|
```
|
||||||
|
|
||||||
## Resetting the Regtest Blockchain
|
## Resetting the Regtest Blockchain
|
||||||
|
|
||||||
Regtest wallets and block chain state (chainstate) are saved in the regtest subdirectory of the Bitcoin configuration directory.
|
Regtest wallets and block chain state (chainstate) are saved in the regtest subdirectory of the Bitcoin configuration directory:
|
||||||
If you want to start a brand new Blockchain using the Regtest mode, all you have to do is delete the `regtest` folder and restart the Bitcoind.
|
```
|
||||||
|
user@mybtc:~/.bitcoin# ls
|
||||||
|
bitcoin.conf regtest testnet3
|
||||||
|
```
|
||||||
|
|
||||||
|
If you want to start a brand new Blockchain using the Regtest mode, all you have to do is delete the `regtest` folder and restart the Bitcoind:
|
||||||
|
```
|
||||||
|
$ rm -rf regtest
|
||||||
|
```
|
||||||
|
|
||||||
## What's Next?
|
## What's Next?
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user