2013-08-06 23:55:22 +02:00
|
|
|
[Application Options]
|
2013-08-07 19:12:46 +02:00
|
|
|
|
2013-09-18 07:13:36 +02:00
|
|
|
; ------------------------------------------------------------------------------
|
|
|
|
; Data settings
|
|
|
|
; ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
; The directory to store data such as the block chain and peer addresses. The
|
|
|
|
; block chain takes several GB, so this location must have a lot of free space.
|
2013-11-11 00:12:45 +01:00
|
|
|
; The default is ~/.btcd/data on POSIX OSes, $LOCALAPPDATA/Btcd/data on Windows,
|
|
|
|
; ~/Library/Application Support/Btcd/data on Mac OS, and $home/btcd/data on
|
|
|
|
; Plan9. Environment variables are expanded so they may be used. NOTE: Windows
|
2013-09-18 07:13:36 +02:00
|
|
|
; environment variables are typically %VARIABLE%, but they must be accessed with
|
2013-11-11 00:12:45 +01:00
|
|
|
; $VARIABLE here. Also, ~ is expanded to $LOCALAPPDATA on Windows.
|
2013-09-18 07:13:36 +02:00
|
|
|
; datadir=~/.btcd/data
|
|
|
|
|
|
|
|
|
2013-08-07 19:12:46 +02:00
|
|
|
; ------------------------------------------------------------------------------
|
|
|
|
; Network settings
|
|
|
|
; ------------------------------------------------------------------------------
|
2013-08-06 23:55:22 +02:00
|
|
|
|
|
|
|
; Use testnet.
|
|
|
|
; testnet=1
|
|
|
|
|
2013-11-14 03:20:32 +01:00
|
|
|
; Connect via a SOCKS5 proxy. NOTE: Specifying a proxy will disable listening
|
|
|
|
; for incoming connections unless listen addresses are provided via the 'listen'
|
|
|
|
; option.
|
2013-08-08 04:49:10 +02:00
|
|
|
; proxy=127.0.0.1:9050
|
|
|
|
; proxyuser=
|
|
|
|
; proxypass=
|
|
|
|
|
2013-12-17 16:10:59 +01:00
|
|
|
; The SOCKS5 proxy above is assumed to be Tor (https://www.torproject.org).
|
|
|
|
; If the proxy is not tor the the following my be used to prevent using
|
|
|
|
; tor specific SOCKS queries to lookup addresses (this increases anonymity when
|
|
|
|
; tor is used by preventing your IP being leaked via DNS).
|
2014-01-10 08:31:20 +01:00
|
|
|
; noonion=1
|
2013-12-17 16:10:59 +01:00
|
|
|
|
|
|
|
; Use an alternative proxy to connect to .onion addresses. The proxy is assumed
|
|
|
|
; to be a Tor node. Non .onion addresses will be contacted with the main proxy
|
|
|
|
; or without a proxy if none is set.
|
|
|
|
; onion=127.0.0.1:9051
|
2013-08-08 04:49:10 +02:00
|
|
|
|
2013-10-04 08:38:41 +02:00
|
|
|
; ******************************************************************************
|
2013-11-14 03:20:32 +01:00
|
|
|
; Summary of 'addpeer' versus 'connect'.
|
|
|
|
;
|
2013-10-04 08:38:41 +02:00
|
|
|
; Only one of the following two options, 'addpeer' and 'connect', may be
|
|
|
|
; specified. Both allow you to specify peers that you want to stay connected
|
|
|
|
; with, but the behavior is slightly different. By default, btcd will query DNS
|
|
|
|
; to find peers to connect to, so unless you have a specific reason such as
|
|
|
|
; those described below, you probably won't need to modify anything here.
|
|
|
|
;
|
|
|
|
; 'addpeer' does not prevent connections to other peers discovered from
|
|
|
|
; the peers you are connected to and also lets the remote peers know you are
|
|
|
|
; available so they can notify other peers they can to connect to you. This
|
|
|
|
; option might be useful if you are having problems finding a node for some
|
|
|
|
; reason (perhaps due to a firewall).
|
|
|
|
;
|
|
|
|
; 'connect', on the other hand, will ONLY connect to the specified peers and
|
2013-11-14 03:20:32 +01:00
|
|
|
; no others. It also disables listening (unless you explicitly set listen
|
|
|
|
; addresses via the 'listen' option) and DNS seeding, so you will not be
|
2013-10-04 08:38:41 +02:00
|
|
|
; advertised as an available peer to the peers you connect to and won't accept
|
|
|
|
; connections from any other peers. So, the 'connect' option effectively allows
|
2013-11-18 17:38:24 +01:00
|
|
|
; you to only connect to "trusted" peers.
|
2013-10-04 08:38:41 +02:00
|
|
|
; ******************************************************************************
|
2013-08-08 04:49:10 +02:00
|
|
|
|
2013-09-19 16:17:15 +02:00
|
|
|
; Add persistent peers to connect to as desired. One peer per line.
|
2013-08-07 19:12:46 +02:00
|
|
|
; You may specify each IP address with or without a port. The default port will
|
|
|
|
; be added automatically if one is not specified here.
|
2013-09-19 16:17:15 +02:00
|
|
|
; addpeer=192.168.1.1
|
|
|
|
; addpeer=10.0.0.2:8333
|
|
|
|
; addpeer=fe80::1
|
|
|
|
; addpeer=[fe80::2]:8333
|
2013-08-06 23:55:22 +02:00
|
|
|
|
2013-10-04 08:38:41 +02:00
|
|
|
; Add persistent peers that you ONLY want to connect to as desired. One peer
|
|
|
|
; per line. You may specify each IP address with or without a port. The
|
|
|
|
; default port will be added automatically if one is not specified here.
|
2013-11-14 03:20:32 +01:00
|
|
|
; NOTE: Specifying this option has other side effects as described above in
|
|
|
|
; the 'addpeer' versus 'connect' summary section.
|
2013-10-04 08:38:41 +02:00
|
|
|
; connect=192.168.1.1
|
|
|
|
; connect=10.0.0.2:8333
|
|
|
|
; connect=fe80::1
|
|
|
|
; connect=[fe80::2]:8333
|
|
|
|
|
2013-08-06 23:55:22 +02:00
|
|
|
; Maximum number of inbound and outbound peers.
|
|
|
|
; maxpeers=8
|
|
|
|
|
|
|
|
; How long to ban misbehaving peers. Valid time units are {s, m, h}.
|
|
|
|
; Minimum 1s.
|
|
|
|
; banduration=24h
|
|
|
|
; banduration=11h30m15s
|
2013-08-07 19:12:46 +02:00
|
|
|
|
2013-10-04 08:38:41 +02:00
|
|
|
; Disable DNS seeding for peers. By default, when btcd starts, it will use
|
|
|
|
; DNS to query for available peers to connect with.
|
|
|
|
; nodnsseed=1
|
|
|
|
|
2013-11-14 03:20:32 +01:00
|
|
|
; Specify the interfaces to listen on. One listen address per line.
|
2013-11-19 18:00:55 +01:00
|
|
|
; NOTE: The default port is modified by some options such as 'testnet', so it is
|
|
|
|
; recommended to not specify a port and allow a proper default to be chosen
|
|
|
|
; unless you have a specific reason to do otherwise.
|
2014-06-09 06:48:56 +02:00
|
|
|
; All interfaces on default port (this is the default):
|
|
|
|
; listen=
|
|
|
|
; All ipv4 interfaces on default port:
|
|
|
|
; listen=0.0.0.0
|
|
|
|
; All ipv6 interfaces on default port:
|
|
|
|
; listen=::
|
|
|
|
; All interfaces on port 8333:
|
|
|
|
; listen=:8333
|
|
|
|
; All ipv4 interfaces on port 8333:
|
|
|
|
; listen=0.0.0.0:8333
|
|
|
|
; All ipv6 interfaces on port 8333:
|
|
|
|
; listen=[::]:8333
|
|
|
|
; Only ipv4 localhost on port 8333:
|
|
|
|
; listen=127.0.0.1:8333
|
|
|
|
; Only ipv6 localhost on port 8333:
|
|
|
|
; listen=[::1]:8333
|
|
|
|
; Only ipv4 localhost on non-standard port 8336:
|
|
|
|
; listen=127.0.0.1:8336
|
|
|
|
; All interfaces on non-standard port 8336:
|
|
|
|
; listen=:8336
|
|
|
|
; All ipv4 interfaces on non-standard port 8336:
|
|
|
|
; listen=0.0.0.0:8336
|
|
|
|
; All ipv6 interfaces on non-standard port 8336:
|
|
|
|
; listen=[::]:8336
|
2013-11-14 03:20:32 +01:00
|
|
|
|
|
|
|
; Disable listening for incoming connections. This will override all listeners.
|
2013-10-04 08:38:41 +02:00
|
|
|
; nolisten=1
|
|
|
|
|
2013-08-07 19:12:46 +02:00
|
|
|
|
|
|
|
; ------------------------------------------------------------------------------
|
|
|
|
; RPC server options - The following options control the built-in RPC server
|
|
|
|
; which is used to control and query information from a running btcd process.
|
|
|
|
;
|
|
|
|
; NOTE: The RPC server is disabled by default if no rpcuser or rpcpass is
|
|
|
|
; specified.
|
|
|
|
; ------------------------------------------------------------------------------
|
|
|
|
|
2013-08-08 19:45:20 +02:00
|
|
|
; Secure the RPC API by specifying the username and password. You must specify
|
2013-08-07 19:12:46 +02:00
|
|
|
; both or the RPC server will be disabled.
|
|
|
|
; rpcuser=whatever_username_you_want
|
|
|
|
; rpcpass=
|
|
|
|
|
2013-11-19 18:00:55 +01:00
|
|
|
; Specify the interfaces for the RPC server listen on. One listen address per
|
|
|
|
; line. NOTE: The default port is modified by some options such as 'testnet',
|
|
|
|
; so it is recommended to not specify a port and allow a proper default to be
|
|
|
|
; chosen unless you have a specific reason to do otherwise.
|
2014-06-09 06:48:56 +02:00
|
|
|
; All interfaces on default port (this is the default):
|
|
|
|
; rpclisten=
|
|
|
|
; All ipv4 interfaces on default port:
|
|
|
|
; rpclisten=0.0.0.0
|
|
|
|
; All ipv6 interfaces on default port:
|
|
|
|
; rpclisten=::
|
|
|
|
; All interfaces on port 8334:
|
|
|
|
; rpclisten=:8334
|
|
|
|
; All ipv4 interfaces on port 8334:
|
|
|
|
; rpclisten=0.0.0.0:8334
|
|
|
|
; All ipv6 interfaces on port 8334:
|
|
|
|
; rpclisten=[::]:8334
|
|
|
|
; Only ipv4 localhost on port 8334:
|
|
|
|
; rpclisten=127.0.0.1:8334
|
|
|
|
; Only ipv6 localhost on port 8334:
|
|
|
|
; rpclisten=[::1]:8334
|
|
|
|
; Only ipv4 localhost on non-standard port 8337:
|
|
|
|
; rpclisten=127.0.0.1:8337
|
|
|
|
; All interfaces on non-standard port 8337:
|
|
|
|
; rpclisten=:8337
|
|
|
|
; All ipv4 interfaces on non-standard port 8337:
|
|
|
|
; rpclisten=0.0.0.0:8337
|
|
|
|
; All ipv6 interfaces on non-standard port 8337:
|
|
|
|
; rpclisten=[::]:8337
|
2013-11-19 18:00:55 +01:00
|
|
|
|
2014-02-19 03:44:37 +01:00
|
|
|
; Specify the maximum number of concurrent RPC clients for standard connections.
|
|
|
|
; rpcmaxclients=10
|
|
|
|
|
2014-02-19 04:05:42 +01:00
|
|
|
; Specify the maximum number of concurrent RPC websocket clients.
|
|
|
|
; rpcmaxwebsockets=25
|
|
|
|
|
2013-08-07 19:12:46 +02:00
|
|
|
; Use the following setting to disable the RPC server even if the rpcuser and
|
|
|
|
; rpcpass are specified above. This allows one to quickly disable the RPC
|
|
|
|
; server without having to remove credentials from the config file.
|
|
|
|
; norpc=1
|
|
|
|
|
|
|
|
|
|
|
|
; ------------------------------------------------------------------------------
|
|
|
|
; Debug
|
|
|
|
; ------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
; Debug logging level.
|
2014-02-28 16:52:44 +01:00
|
|
|
; Valid levels are {trace, debug, info, warn, error, critical}
|
|
|
|
; You may also specify <subsystem>=<level>,<subsystem2>=<level>,... to set
|
|
|
|
; log level for individual subsystems. Use btcd --debuglevel=show to list
|
|
|
|
; available subsystems.
|
2013-08-07 19:12:46 +02:00
|
|
|
; debuglevel=info
|
2013-09-18 00:28:07 +02:00
|
|
|
|
|
|
|
; The port used to listen for HTTP profile requests. The profile server will
|
|
|
|
; be disabled if this option is not specified. The profile information can be
|
|
|
|
; accessed at http://localhost:<profileport>/debug/pprof once running.
|
|
|
|
; profile=6061
|