mirror of
https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
synced 2025-06-08 00:16:26 +00:00
Merge pull request #57 from ariard/02_1-with-comments
Add comments for configuration file settings
This commit is contained in:
commit
dc62c43a65
@ -354,17 +354,40 @@ $ /bin/mkdir ~user1/.bitcoin
|
|||||||
This is the core bitcoin.conf file, which is appropriate for an unpruned testnet setup:
|
This is the core bitcoin.conf file, which is appropriate for an unpruned testnet setup:
|
||||||
```
|
```
|
||||||
$ cat >> ~user1/.bitcoin/bitcoin.conf << EOF
|
$ cat >> ~user1/.bitcoin/bitcoin.conf << EOF
|
||||||
|
# Accept command line and JSON-RPC commands
|
||||||
server=1
|
server=1
|
||||||
|
|
||||||
|
# Set database cache size in megabytes (4 to 16384, default: 450)
|
||||||
dbcache=1536
|
dbcache=1536
|
||||||
|
|
||||||
|
# Set the number of script verification threads (-6 to 16, 0 = auto, <0 = leave that many cores free, default: 0)
|
||||||
par=1
|
par=1
|
||||||
|
|
||||||
|
# Set to blocksonly mode, sends and receives no lose transactions, instead handles only complete blocks
|
||||||
blocksonly=1
|
blocksonly=1
|
||||||
|
|
||||||
|
# Tries to keep outbound traffic under the given target (in MiB per 24h), 0 = no limit (default: 0)
|
||||||
maxuploadtarget=137
|
maxuploadtarget=137
|
||||||
|
|
||||||
|
# Maintain at most <n> connections to peers (default: 125)
|
||||||
maxconnections=16
|
maxconnections=16
|
||||||
|
|
||||||
|
# Username for JSON-RPC connections
|
||||||
rpcuser=bitcoinrpc
|
rpcuser=bitcoinrpc
|
||||||
|
|
||||||
|
# Password for JSON-RPC connections
|
||||||
rpcpassword=$(xxd -l 16 -p /dev/urandom)
|
rpcpassword=$(xxd -l 16 -p /dev/urandom)
|
||||||
|
|
||||||
|
# Allow JSON-RPC connections from, by default only localhost are allowed
|
||||||
rpcallowip=127.0.0.1
|
rpcallowip=127.0.0.1
|
||||||
|
|
||||||
|
# Use the test chain
|
||||||
testnet=1
|
testnet=1
|
||||||
|
|
||||||
|
# Maintain a full transaction index, used by the getrawtransaction rpc call (default: 0)
|
||||||
txindex=1
|
txindex=1
|
||||||
|
|
||||||
|
# Make the wallet broadcast transactions (default: 1)
|
||||||
walletbroadcast=1
|
walletbroadcast=1
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user