-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathexample-config.toml
64 lines (52 loc) · 1.71 KB
/
example-config.toml
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
# This example config contains all avaliable configuration options.
# Options are assigned their default or left blank with a FIXME: mark.
# ---- needed for both the API and the daemon ----
[redis]
host = "" # FIXME:
port = "6379" # FIXME:
passwd = "" # FIXME:
connection = "redis"
# ---- needed only for the API ----
[api]
port = "23485" # this needs to be a string
production = true
# ---- needed only for the deamon ----
# Needed when fetching via REST interface
[bitcoind.rest]
protocol = "http"
host = "localhost"
port = "8332"
responseTimeout = 30 # seconds
# Needed when fetching via JSON-RPC interface
[bitcoind.jsonrpc]
protocol = "http"
host = "localhost"
port = "8332" # regtest 18443 # testnet 18332
username = ""
password = ""
responseTimeout = 30 # seconds
[mempool]
enable = false # enable mempool fetching
fetchInterface = "REST" # fetch mempool via REST or JSON-RPC
fetchInterval = 60 # seconds
callSaveMempool = true # calls the savemempool RPC on average after every fourth fetch
[mempool.processing]
processCurrentMempool = true
processHistoricalMempool = true
processTransactionStats = true
[feeratefetcher]
enable = false
fetchInterval = 180
[log]
enableTrace = false
colorizeOutput = true
[zmq]
enable = false # enable the zmq interface
host = "localhost" # currently only tcp connections are supported
port = "28332"
[zmq.subscribeTo]
rawTx = false
rawBlock = true # needed to write recentBlocks to database
hashTx = false
hashBlock = false
rawTx2 = false # this needs a custom bitcoind patch https://github.com/0xB10C/bitcoin/tree/2019-06-rawtx2-zmq-for-memod to work