forked from wavesplatform/blockchain-postgres-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yml
34 lines (28 loc) · 1.24 KB
/
config.example.yml
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
# Node to get data from. Can be localhost.
nodeAddress: https://nodes.wavesnodes.com
# Determines what to do if blocks on this height already exists in the database.
# Possible options:
# 'nothing' — never update, skip block
# 'update' — update only if block's signature is different
# 'updateForce' — always update
onConflict: update
# How many blocks to fetch on single download request.
# Consider lowering this setting if fetching takes too long.
# Possible values: 1 to 100.
blocksPerRequest: 100
# How many blocks to fetch on single update request.
# More blocks — deeper rollback safety, but longer updates (less realtime results).
# Possible values: 1 to 100, recommended: 1 to 10.
blocksPerUpdate: 5
# Minimal interval between initiating updates, milliseconds ('throttle' value)
# Frequent updates mean data is more up-to-date, but load database more
updateThrottleInterval: 500
# Interval between initiating rollback checks, milliseconds ('throttle' value)
rollbackMonitorThrottleInterval: 300000
# PostgreSQL credentials.
# Tables must be created beforehand according to SQL files.
postgresHost: # IP, hostname or localhost
postgresPort: #5 432 or other
postgresDatabase: # database name
postgresUser: # username
postgresPassword: # password