Delete A3_1_Starting_the_Regtest.md

moving into A3
This commit is contained in:
Shannon Appelcline 2020-08-04 12:51:42 -10:00 committed by GitHub
parent 7661b60e2d
commit b51e11b5dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,30 +0,0 @@
# A3.1: Starting the Regtest
> **NOTE:** This is a draft in progress, so that I can get some feedback from early reviewers. It is not yet ready for learning.
This document explains how to build a Regtest (Regression Test) Bitcoin setup by hand to be able to develop new applications without the need to interact with other peers and blocks. Bitcoin Cores regression test mode (regtest mode) lets you instantly create a brand-new private block chain with the same basic rules as testnet, but with one major difference: you choose when to create new blocks, so you have complete control over the environment.
## Starting Bitcoind on Regtest
After [setting up your Bitcoin-Core VPS](02_0_Setting_Up_a_Bitcoin-Core_VPS.md) or [compiling from source](A2_0_Compiling_Bitcoin_from_Source.md), you are now able to use Regtest. To start your `bitcoind` on Regtest and create a private Blockchain, use the following command:
```
$ bitcoind -regtest -daemon
```
## Resetting the Regtest Blockchain
Regtest wallets and block chain state (chainstate) are saved in the regtest subdirectory of the Bitcoin configuration directory:
```
user@mybtc:~/.bitcoin# ls
bitcoin.conf regtest testnet3
```
If you want to start a brand new Blockchain using regtest, all you have to do is delete the `regtest` folder and restart the Bitcoind:
```
$ rm -rf regtest
```
## What's Next?
After starting your bitcoind on regtest, you can now use RPC commands to [generate blocks in your private chain](A2_2_Mining_with_Regtest.md).
This will allow you to get balance in your wallet and [test the Regtest blockchain](A3_3_Testing_with_Regtest.md).