-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbitcoin.conf.template
152 lines (140 loc) · 2.91 KB
/
bitcoin.conf.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
##
## bitcoin.conf configuration file. Lines beginning with # are comments.
##
## RPC
{{#IF rpc.enable
{{#IF advanced.pruning.mode = "automatic"
rpcbind=127.0.0.1:18332
rpcallowip=127.0.0.1/32
}}
{{#IF advanced.pruning.mode != "automatic"
rpcbind=0.0.0.0:8332
rpcallowip=0.0.0.0/0
}}
}}
rpcuser={{rpc.username}}
rpcpassword={{rpc.password}}
{{#FOREACH rpc.advanced.auth
rpcauth={{rpc.advanced.auth}}
}}
rpcservertimeout={{rpc.advanced.servertimeout}}
rpcthreads={{rpc.advanced.threads}}
rpcworkqueue={{rpc.advanced.workqueue}}
## MEMPOOL
{{#IF advanced.mempool.mempoolfullrbf
mempoolfullrbf=1
}}
{{#IF !advanced.mempool.mempoolfullrbf
mempoolfullrbf=0
}}
{{#IF advanced.mempool.persistmempool
persistmempool=1
}}
{{#IF !advanced.mempool.persistmempool
persistmempool=0
}}
maxmempool={{advanced.mempool.maxmempool}}
mempoolexpiry={{advanced.mempool.mempoolexpiry}}
{{#IF advanced.mempool.datacarrier
datacarrier=1
}}
{{#IF !advanced.mempool.datacarrier
datacarrier=0
}}
datacarriersize={{advanced.mempool.datacarriersize}}
{{#IF advanced.mempool.permitbaremultisig
permitbaremultisig=1
}}
{{#IF !advanced.mempool.permitbaremultisig
permitbaremultisig=0
}}
## PEERS
{{#IF advanced.peers.listen
listen=1
bind=0.0.0.0:8333
}}
{{#IF !advanced.peers.listen
listen=0
}}
{{#IF advanced.peers.onlyconnect
{{#FOREACH advanced.peers.addnode
{{#IF advanced.peers.addnode.port
connect={{advanced.peers.addnode.hostname}}:{{advanced.peers.addnode.port}}
}}
{{#IF !advanced.peers.addnode.port
connect={{advanced.peers.addnode.hostname}}
}}
}}
}}
{{#IF !advanced.peers.onlyconnect
{{#FOREACH advanced.peers.addnode
{{#IF advanced.peers.addnode.port
addnode={{advanced.peers.addnode.hostname}}:{{advanced.peers.addnode.port}}
}}
{{#IF !advanced.peers.addnode.port
addnode={{advanced.peers.addnode.hostname}}
}}
}}
}}
{{#IF advanced.peers.onlyonion
onlynet=onion
}}
{{#IF advanced.peers.v2transport
v2transport=1
}}
{{#IF !advanced.peers.v2transport
v2transport=0
}}
## WHITELIST
## whitelist all services subnet
whitelist=172.18.0.0/16
## PRUNING
{{#IF advanced.pruning.mode = "automatic"
prune={{advanced.pruning.size}}
}}
## PERFORMANCE TUNING
{{#IF advanced.dbcache
dbcache={{advanced.dbcache}}
}}
## WALLET
{{#IF !wallet.enable
disablewallet=1
}}
{{#IF wallet.enable
disablewallet=0
deprecatedrpc=create_bdb
}}
{{#IF wallet.avoidpartialspends
avoidpartialspends=1
}}
{{#IF !wallet.avoidpartialspends
avoidpartialspends=0
}}
discardfee={{wallet.discardfee}}
## ZERO MQ
{{#IF zmq-enabled
zmqpubrawblock=tcp://0.0.0.0:28332
zmqpubhashblock=tcp://0.0.0.0:28332
zmqpubrawtx=tcp://0.0.0.0:28333
zmqpubhashtx=tcp://0.0.0.0:28333
zmqpubsequence=tcp://0.0.0.0:28333
}}
## TXINDEX
{{#IF txindex
txindex=1
}}
## COINSTATSINDEX
{{#IF coinstatsindex
coinstatsindex=1
}}
## BIP37
{{#IF advanced.bloomfilters.peerbloomfilters
peerbloomfilters=1
}}
## BIP157
{{#IF advanced.blockfilters.blockfilterindex
blockfilterindex=basic
}}
{{#IF advanced.blockfilters.peerblockfilters
peerblockfilters=1
}}