Detailed bitcoin.conf

https://blog.51cto.com/xxzhi/2385966

bitcoin.conf credits is the bit kernel bitcoind profile bitcoin.conf article describes the default path, the main description is given of configuration items.

If you want to quickly master online interactive courses butt and application development Bitcoin recommended Ebizal network:

1, the default path bitcoin.conf

  • In linux, the default path is bitcoin.conf$HOME/.bitcoin/bitcoin.conf
  • In the windows, the default path is bitcoin.conf%APPDATA%\bitcoin\bitcoin.conf
  • In mac, the default path is bitcoin.conf$HOME/Library/Application Support/Bitcoin/bitcoin.conf

Bitcoind and does not automatically create bitcoin.conf configuration file under the default path, and therefore a need to create their own into the above directory. If you do not have ready-made configuration files are available, you can copy from GitHub:
bitcoin.conf .

2, bitcoin.conf configuration instructions

In bitcoin.conf configuration file, each row in the form of key = value statement of configuration items and value, #after the contents as comments.

2.1 Overall Configuration

TestNet : connecting the main network or test network:

testnet=0   # 0 - 主网 1 - 测试网

Regtest : the chain is running in private mode

regtest=0  # 0 - 否 1 - 是

Proxy : whether to use a proxy socks5

#proxy=127.0.0.1:9050 # 默认关闭

the bind : local listener address

#bind=<addr>   # 注释此行,表示使用默认监听地址

whitebind : local whitelist listen address

#whitebind=<addr>  # 注释此行,表示使用默认监听地址

the addNode : Adding seed node

#addnode=69.164.218.197  # 可添加多个

Connect : a connection node address

#connect=69.164.218.197  

the listen : whether to enter listening mode, enabled by default, unless the connect configuration

#listen=1

maxconnections maximum number of connections of inbound / outbound:

#maxconnections=

2.2 RPC Configuration

Server : whether to start JSON-RPC Interface

#server=0    # 0 - 不启动 1 - 启动

the rpcbind : rpc listen address of the interface, the default binding to all IP

#rpcbind=<addr>

rpcport : listening port rpc interface

#rpcport=8332

rpcuser : access to the user name rpc interface

#rpcuser=alice
#rpcpassword=DONT_USE_THIS_YOU_WILL_GET_ROBBED_8ak1gI25KFTvjovL3gAM967mies3E=

rpcclienttimeout : rpc client timeout in seconds

#rpcclienttimeout=30

rpcallowip : rpc access whitelist

#rpcallowip=1.2.3.4/24

rpcconnect : CLI-default connection Bitcoin address

#rpcconnect=127.0.0.1

2.3 Configuration wallet

txconfirmtarget : Minimum transaction confirmation number, default: 6

#txconfirmtarget=n

paytxfee transaction fee for every time you send Bitcoin:

paytxfee=0.000x

2.4 Additional Configuration

KeyPool : key pool size

#keypool=100

Prune : Pruning quantity retained, more than this number of historic blocks to delete from memory

#prune=550

2.5 User interface options

min : whether to start the minimization

#min=1

MinimizeToTray : whether to minimize to the system tray

#minimizetotray=1

3, an example bitcoin.conf file

Note the following configuration file, the options have a comment, you need to cancel comment depending on your situation and set the appropriate value:

#testnet=0
#regtest=0
#proxy=127.0.0.1:9050
#bind=<addr>
#whitebind=<addr>
#addnode=69.164.218.197
#addnode=10.0.0.2:8333
#connect=69.164.218.197
#listen=1
#maxconnections=
#server=0
#rpcbind=<addr>
#rpcuser=alice
#rpcpassword=DONT_USE_THIS_YOU_WILL_GET_ROBBED_8ak1gI25KFTvjovL3gAM967mies3E=
#rpcclienttimeout=30
#rpcallowip=10.1.1.34/255.255.255.0
#rpcallowip=1.2.3.4/24
#rpcallowip=2001:db8:85a3:0:0:8a2e:370:7334/96
#rpcport=8332
#rpcconnect=127.0.0.1
#txconfirmtarget=n
#paytxfee=0.000x
#keypool=100
#prune=550
#min=1
#minimizetotray=1

Guess you like

Origin blog.csdn.net/didixiao_/article/details/92220892