github.com/dashpay/godash@v0.0.0-20160726055534-e038a21e0e3d/sample-btcd.conf (about) 1 [Application Options] 2 3 ; ------------------------------------------------------------------------------ 4 ; Data settings 5 ; ------------------------------------------------------------------------------ 6 7 ; The directory to store data such as the block chain and peer addresses. The 8 ; block chain takes several GB, so this location must have a lot of free space. 9 ; The default is ~/.btcd/data on POSIX OSes, $LOCALAPPDATA/Btcd/data on Windows, 10 ; ~/Library/Application Support/Btcd/data on Mac OS, and $home/btcd/data on 11 ; Plan9. Environment variables are expanded so they may be used. NOTE: Windows 12 ; environment variables are typically %VARIABLE%, but they must be accessed with 13 ; $VARIABLE here. Also, ~ is expanded to $LOCALAPPDATA on Windows. 14 ; datadir=~/.btcd/data 15 16 17 ; ------------------------------------------------------------------------------ 18 ; Network settings 19 ; ------------------------------------------------------------------------------ 20 21 ; Use testnet. 22 ; testnet=1 23 24 ; Connect via a SOCKS5 proxy. NOTE: Specifying a proxy will disable listening 25 ; for incoming connections unless listen addresses are provided via the 'listen' 26 ; option. 27 ; proxy=127.0.0.1:9050 28 ; proxyuser= 29 ; proxypass= 30 31 ; The SOCKS5 proxy above is assumed to be Tor (https://www.torproject.org). 32 ; If the proxy is not tor the following may be used to prevent using tor 33 ; specific SOCKS queries to lookup addresses (this increases anonymity when tor 34 ; is used by preventing your IP being leaked via DNS). 35 ; noonion=1 36 37 ; Use an alternative proxy to connect to .onion addresses. The proxy is assumed 38 ; to be a Tor node. Non .onion addresses will be contacted with the main proxy 39 ; or without a proxy if none is set. 40 ; onion=127.0.0.1:9051 41 ; onionuser= 42 ; onionpass= 43 44 ; Enable Tor stream isolation by randomizing proxy user credentials resulting in 45 ; Tor creating a new circuit for each connection. This makes it more difficult 46 ; to correlate connections. 47 ; torisolation=1 48 49 ; Use Universal Plug and Play (UPnP) to automatically open the listen port 50 ; and obtain the external IP address from supported devices. NOTE: This option 51 ; will have no effect if exernal IP addresses are specified. 52 ; upnp=1 53 54 ; Specify the external IP addresses your node is listening on. One address per 55 ; line. btcd will not contact 3rd-party sites to obtain external ip addresses. 56 ; This means if you are behind NAT, your node will not be able to advertise a 57 ; reachable address unless you specify it here or enable the 'upnp' option (and 58 ; have a supported device). 59 ; externalip=1.2.3.4 60 ; externalip=2002::1234 61 62 ; ****************************************************************************** 63 ; Summary of 'addpeer' versus 'connect'. 64 ; 65 ; Only one of the following two options, 'addpeer' and 'connect', may be 66 ; specified. Both allow you to specify peers that you want to stay connected 67 ; with, but the behavior is slightly different. By default, btcd will query DNS 68 ; to find peers to connect to, so unless you have a specific reason such as 69 ; those described below, you probably won't need to modify anything here. 70 ; 71 ; 'addpeer' does not prevent connections to other peers discovered from 72 ; the peers you are connected to and also lets the remote peers know you are 73 ; available so they can notify other peers they can to connect to you. This 74 ; option might be useful if you are having problems finding a node for some 75 ; reason (perhaps due to a firewall). 76 ; 77 ; 'connect', on the other hand, will ONLY connect to the specified peers and 78 ; no others. It also disables listening (unless you explicitly set listen 79 ; addresses via the 'listen' option) and DNS seeding, so you will not be 80 ; advertised as an available peer to the peers you connect to and won't accept 81 ; connections from any other peers. So, the 'connect' option effectively allows 82 ; you to only connect to "trusted" peers. 83 ; ****************************************************************************** 84 85 ; Add persistent peers to connect to as desired. One peer per line. 86 ; You may specify each IP address with or without a port. The default port will 87 ; be added automatically if one is not specified here. 88 ; addpeer=192.168.1.1 89 ; addpeer=10.0.0.2:8333 90 ; addpeer=fe80::1 91 ; addpeer=[fe80::2]:8333 92 93 ; Add persistent peers that you ONLY want to connect to as desired. One peer 94 ; per line. You may specify each IP address with or without a port. The 95 ; default port will be added automatically if one is not specified here. 96 ; NOTE: Specifying this option has other side effects as described above in 97 ; the 'addpeer' versus 'connect' summary section. 98 ; connect=192.168.1.1 99 ; connect=10.0.0.2:8333 100 ; connect=fe80::1 101 ; connect=[fe80::2]:8333 102 103 ; Maximum number of inbound and outbound peers. 104 ; maxpeers=125 105 106 ; Disable banning of misbehaving peers. 107 ; nobanning=1 108 109 ; Maximum allowed ban score before disconnecting and banning misbehaving peers.` 110 ; banthreshold=100 111 112 ; How long to ban misbehaving peers. Valid time units are {s, m, h}. 113 ; Minimum 1s. 114 ; banduration=24h 115 ; banduration=11h30m15s 116 117 ; Disable DNS seeding for peers. By default, when btcd starts, it will use 118 ; DNS to query for available peers to connect with. 119 ; nodnsseed=1 120 121 ; Specify the interfaces to listen on. One listen address per line. 122 ; NOTE: The default port is modified by some options such as 'testnet', so it is 123 ; recommended to not specify a port and allow a proper default to be chosen 124 ; unless you have a specific reason to do otherwise. 125 ; All interfaces on default port (this is the default): 126 ; listen= 127 ; All ipv4 interfaces on default port: 128 ; listen=0.0.0.0 129 ; All ipv6 interfaces on default port: 130 ; listen=:: 131 ; All interfaces on port 8333: 132 ; listen=:8333 133 ; All ipv4 interfaces on port 8333: 134 ; listen=0.0.0.0:8333 135 ; All ipv6 interfaces on port 8333: 136 ; listen=[::]:8333 137 ; Only ipv4 localhost on port 8333: 138 ; listen=127.0.0.1:8333 139 ; Only ipv6 localhost on port 8333: 140 ; listen=[::1]:8333 141 ; Only ipv4 localhost on non-standard port 8336: 142 ; listen=127.0.0.1:8336 143 ; All interfaces on non-standard port 8336: 144 ; listen=:8336 145 ; All ipv4 interfaces on non-standard port 8336: 146 ; listen=0.0.0.0:8336 147 ; All ipv6 interfaces on non-standard port 8336: 148 ; listen=[::]:8336 149 150 ; Disable listening for incoming connections. This will override all listeners. 151 ; nolisten=1 152 153 ; Disable peer bloom filtering. See BIP0111. 154 ; nopeerbloomfilters=1 155 156 157 ; ------------------------------------------------------------------------------ 158 ; RPC server options - The following options control the built-in RPC server 159 ; which is used to control and query information from a running btcd process. 160 ; 161 ; NOTE: The RPC server is disabled by default if rpcuser AND rpcpass, or 162 ; rpclimituser AND rpclimitpass, are not specified. 163 ; ------------------------------------------------------------------------------ 164 165 ; Secure the RPC API by specifying the username and password. You can also 166 ; specify a limited username and password. You must specify at least one 167 ; full set of credentials - limited or admin - or the RPC server will 168 ; be disabled. 169 ; rpcuser=whatever_admin_username_you_want 170 ; rpcpass= 171 ; rpclimituser=whatever_limited_username_you_want 172 ; rpclimitpass= 173 174 ; Specify the interfaces for the RPC server listen on. One listen address per 175 ; line. NOTE: The default port is modified by some options such as 'testnet', 176 ; so it is recommended to not specify a port and allow a proper default to be 177 ; chosen unless you have a specific reason to do otherwise. By default, the 178 ; RPC server will only listen on localhost for IPv4 and IPv6. 179 ; All interfaces on default port: 180 ; rpclisten= 181 ; All ipv4 interfaces on default port: 182 ; rpclisten=0.0.0.0 183 ; All ipv6 interfaces on default port: 184 ; rpclisten=:: 185 ; All interfaces on port 8334: 186 ; rpclisten=:8334 187 ; All ipv4 interfaces on port 8334: 188 ; rpclisten=0.0.0.0:8334 189 ; All ipv6 interfaces on port 8334: 190 ; rpclisten=[::]:8334 191 ; Only ipv4 localhost on port 8334: 192 ; rpclisten=127.0.0.1:8334 193 ; Only ipv6 localhost on port 8334: 194 ; rpclisten=[::1]:8334 195 ; Only ipv4 localhost on non-standard port 8337: 196 ; rpclisten=127.0.0.1:8337 197 ; All interfaces on non-standard port 8337: 198 ; rpclisten=:8337 199 ; All ipv4 interfaces on non-standard port 8337: 200 ; rpclisten=0.0.0.0:8337 201 ; All ipv6 interfaces on non-standard port 8337: 202 ; rpclisten=[::]:8337 203 204 ; Specify the maximum number of concurrent RPC clients for standard connections. 205 ; rpcmaxclients=10 206 207 ; Specify the maximum number of concurrent RPC websocket clients. 208 ; rpcmaxwebsockets=25 209 210 ; Use the following setting to disable the RPC server even if the rpcuser and 211 ; rpcpass are specified above. This allows one to quickly disable the RPC 212 ; server without having to remove credentials from the config file. 213 ; norpc=1 214 215 ; Use the following setting to disable TLS for the RPC server. NOTE: This 216 ; option only works if the RPC server is bound to localhost interfaces (which is 217 ; the default). 218 ; notls=1 219 220 221 ; ------------------------------------------------------------------------------ 222 ; Mempool Settings - The following options 223 ; ------------------------------------------------------------------------------ 224 225 ; Set the minimum transaction fee to be considered a non-zero fee, 226 ; minrelaytxfee=0.00001 227 228 ; Rate-limit free transactions to the value 15 * 1000 bytes per 229 ; minute. 230 ; limitfreerelay=15 231 232 ; Require high priority for relaying free or low-fee transactions. 233 ; norelaypriority=0 234 235 ; Limit orphan transaction pool to 1000 transactions. 236 ; maxorphantx=1000 237 238 ; Do not accept transactions from remote peers. 239 ; blocksonly=1 240 241 242 ; ------------------------------------------------------------------------------ 243 ; Optional Transaction Indexes 244 ; ------------------------------------------------------------------------------ 245 246 ; Build and maintain a full address-based transaction index. 247 ; addrindex=1 248 ; Delete the entire address index on start up, then exit. 249 ; dropaddrindex=0 250 251 252 ; ------------------------------------------------------------------------------ 253 ; Optional Indexes 254 ; ------------------------------------------------------------------------------ 255 256 ; Build and maintain a full hash-based transaction index which makes all 257 ; transactions available via the getrawtransaction RPC. 258 ; txindex=1 259 260 ; Build and maintain a full address-based transaction index which makes the 261 ; searchrawtransactions RPC available. 262 ; addrindex=1 263 264 265 ; ------------------------------------------------------------------------------ 266 ; Signature Verification Cache 267 ; ------------------------------------------------------------------------------ 268 269 ; Limit the signature cache to a max of 50000 entries. 270 ; sigcachemaxsize=50000 271 272 273 ; ------------------------------------------------------------------------------ 274 ; Coin Generation (Mining) Settings - The following options control the 275 ; generation of block templates used by external mining applications through RPC 276 ; calls as well as the built-in CPU miner (if enabled). 277 ; ------------------------------------------------------------------------------ 278 279 ; Enable built-in CPU mining. 280 ; 281 ; NOTE: This is typically only useful for testing purposes such as testnet or 282 ; simnet since the difficutly on mainnet is far too high for CPU mining to be 283 ; worth your while. 284 ; generate=false 285 286 ; Add addresses to pay mined blocks to for CPU mining and the block templates 287 ; generated for the getwork RPC as desired. One address per line. 288 ; miningaddr=1yourbitcoinaddress 289 ; miningaddr=1yourbitcoinaddress2 290 ; miningaddr=1yourbitcoinaddress3 291 292 ; Specify the minimum block size in bytes to create. By default, only 293 ; transactions which have enough fees or a high enough priority will be included 294 ; in generated block templates. Specifying a minimum block size will instead 295 ; attempt to fill generated block templates up with transactions until it is at 296 ; least the specified number of bytes. 297 ; blockminsize=0 298 299 ; Specify the maximum block size in bytes to create. This value will be limited 300 ; to the consensus limit if it is larger than that value. 301 ; blockmaxsize=750000 302 303 ; Specify the size in bytes of the high-priority/low-fee area when creating a 304 ; block. Transactions which consist of large amounts, old inputs, and small 305 ; sizes have the highest priority. One consequence of this is that as low-fee 306 ; or free transactions age, they raise in priority thereby making them more 307 ; likely to be included in this section of a new block. This value is limited 308 ; by the blackmaxsize option and will be limited as needed. 309 ; blockprioritysize=50000 310 311 312 ; ------------------------------------------------------------------------------ 313 ; Debug 314 ; ------------------------------------------------------------------------------ 315 316 ; Debug logging level. 317 ; Valid levels are {trace, debug, info, warn, error, critical} 318 ; You may also specify <subsystem>=<level>,<subsystem2>=<level>,... to set 319 ; log level for individual subsystems. Use btcd --debuglevel=show to list 320 ; available subsystems. 321 ; debuglevel=info 322 323 ; The port used to listen for HTTP profile requests. The profile server will 324 ; be disabled if this option is not specified. The profile information can be 325 ; accessed at http://localhost:<profileport>/debug/pprof once running. 326 ; profile=6061