-
Notifications
You must be signed in to change notification settings - Fork 84
/
application.conf
209 lines (178 loc) · 5.5 KB
/
application.conf
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
bitcoin-s {
network = mainnet # regtest, testnet3, mainnet, signet
datadir = ${HOME}/.bitcoin-s
dbDefault = {
dataSourceClass = slick.jdbc.DatabaseUrlDataSource
profile = "slick.jdbc.SQLiteProfile$"
db {
# for information on parameters available here see
# https://scala-slick.org/doc/3.3.1/api/index.html#slick.jdbc.JdbcBackend$DatabaseFactoryDef@forConfig(String,Config,Driver,ClassLoader):Database
path = ${bitcoin-s.datadir}/${bitcoin-s.network}/
driver = org.sqlite.JDBC
user = ""
password = ""
host = localhost
port = 5432
# this needs to be set to 1 for SQLITE as it does not support concurrent database operations
# see: https://github.com/bitcoin-s/bitcoin-s/pull/1840
numThreads = 1
queueSize=5000
connectionPool = "HikariCP"
registerMbeans = true
}
hikari-logging = false
hikari-logging-interval = 10 minute
}
node = ${bitcoin-s.dbDefault}
node {
peers = ["neutrino.suredbits.com:8333"] # a list of peer addresses in form "hostname:portnumber"
# (e.g. "neutrino.testnet3.suredbits.com:18333")
# Port number is optional, the default value is 8333 for mainnet,
# 18333 for testnet and 18444 for regtest.
mode = neutrino # neutrino, spv
# this config key is read by Slick
db {
name = nodedb
poolName = "bitcoin-s-node-db"
}
# PostgreSQL example:
# db {
# name = node
# driver = org.postgresql.Driver
# user = postgres
# password = ""
# }
}
chain = ${bitcoin-s.dbDefault}
chain {
neutrino {
filter-header-batch-size.default = 2000
filter-header-batch-size.regtest = 10
# You can set a network specific filter-header-batch-size
# by adding a trailing `.networkId` (main, test, regtest)
# It is recommended to keep the main and test batch size high
# to keep the sync time fast, however, for regtest it should be small
# so it does not exceed the chain size.
filter-batch-size = 1000
}
# this config key is read by Slick
db {
name = chaindb
poolName = "bitcoin-s-chain-db"
}
# PostgreSQL example:
# db {
# name = chain
# driver = org.postgresql.Driver
# user = postgres
# password = ""
# }
}
wallet = ${bitcoin-s.dbDefault}
# settings for wallet module
wallet {
defaultAccountType = segwit # legacy, segwit, nested-segwit
bloomFalsePositiveRate = 0.0001 # percentage
addressGapLimit = 20
discoveryBatchSize = 100
requiredConfirmations = 6
# How big the address queue size is before we throw an exception
# because of an overflow
addressQueueSize = 10
# How long we attempt to generate an address for
# before we timeout
addressQueueTimeout = 5 seconds
# this config key is read by Slick
db {
name = walletdb
poolName = "bitcoin-s-wallet-db"
}
# PostgreSQL example:
# db {
# name = wallet
# driver = org.postgresql.Driver
# user = postgres
# password = ""
# }
}
server {
# The port we bind our rpc server on
rpcport = 9999
rpcbind = "127.0.0.1"
}
dlc = ${bitcoin-s.dbDefault}
dlc {
# this config key is read by Slick
db {
name = dlcdb
url = "jdbc:sqlite:"${bitcoin-s.dlc.db.path}${bitcoin-s.dlc.db.name}
}
# PostgreSQL example:
# db {
# name = dlcdb
# driver = org.postgresql.Driver
# username = postgres
# password = ""
# }
}
oracle = ${bitcoin-s.dbDefault}
oracle {
# this config key is read by Slick
db {
name = oracle
path = ${bitcoin-s.datadir}/oracle/
poolName = "bitcoin-s-oracle-db"
}
# PostgreSQL example:
# db {
# name = oracle
# driver = org.postgresql.Driver
# user = postgres
# password = ""
# }
}
test = ${bitcoin-s.dbDefault}
test {
# this config key is read by Slick
db {
name = testdb
}
}
}
akka {
# Let Cli commands take 30 seconds
http.server.request-timeout = 30s
# Can parse 20MBs
http.server.parsing.max-content-length = 20m
http.client.parsing.max-content-length = 20m
# Loggers to register at boot time (akka.event.Logging$DefaultLogger logs
# to STDOUT)
loggers = ["akka.event.slf4j.Slf4jLogger"]
# Log level used by the configured loggers (see "loggers") as soon
# as they have been started; before that, see "stdout-loglevel"
# Options: OFF, ERROR, WARNING, INFO, DEBUG
loglevel = "DEBUG"
# Log level for the very basic logger activated during ActorSystem startup.
# This logger prints the log messages to stdout (System.out).
# Options: OFF, ERROR, WARNING, INFO, DEBUG
stdout-loglevel = "DEBUG"
# Filter of log events that is used by the LoggingAdapter before
# publishing log events to the eventStream.
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
use-slf4j = on
log-config-on-start = off
actor {
debug {
# enable DEBUG logging of all AutoReceiveMessages (Kill, PoisonPill etc.)
autoreceive= off
# enable function of LoggingReceive, which is to log any received message at
# DEBUG level
receive = on
# enable DEBUG logging of unhandled messages
unhandled = off
# enable DEBUG logging of actor lifecycle changes
lifecycle = off
event-stream=off
}
}
}