Update 2A_Setting_Up_a_Bitcoin-Core_VPS_by_Hand.md

This commit is contained in:
Shannon Appelcline 2017-02-23 13:17:02 -08:00 committed by GitHub
parent 124f18e8ac
commit d89a36369b

View File

@ -374,7 +374,6 @@ $ cat >> ~user1/.bitcoin/bitcoin.conf << EOF
server=1 server=1
dbcache=1536 dbcache=1536
par=1 par=1
txindex=1
blocksonly=1 blocksonly=1
maxuploadtarget=137 maxuploadtarget=137
maxconnections=16 maxconnections=16
@ -391,6 +390,16 @@ prune=550
EOF EOF
``` ```
Otherwise, if you are _not_ pruning add the following:
```
$ cat >> ~user1/.bitcoin/bitcoin.conf << EOF
txindex=1
EOF
```
(txindex gives the benefit of a complete transaction index, but is not compatible with pruning, so you choose one or the other.)
Finally, if you want to use Testnet instead of Mainnet, add the following: Finally, if you want to use Testnet instead of Mainnet, add the following:
``` ```
@ -399,6 +408,20 @@ testnet=1
EOF EOF
``` ```
So, for example, a pruned testnet, which is our favored setup for playing with bitcoin, would look like this:
```
server=1
dbcache=1536
par=1
blocksonly=1
maxuploadtarget=137
maxconnections=16
rpcuser=bitcoinrpc
rpcpassword=$(xxd -l 16 -p /dev/urandom)
prune=550
testnet=1
```
_Please note that this setup does not yet support a Private Regtest. That will require a very different setup TBD._ _Please note that this setup does not yet support a Private Regtest. That will require a very different setup TBD._
Finally, limit permissions to your configuration file: Finally, limit permissions to your configuration file: