forked from wavesplatform/blockchain-postgres-sync
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.example.yml
More file actions
47 lines (40 loc) · 1.71 KB
/
Copy pathconfig.example.yml
File metadata and controls
47 lines (40 loc) · 1.71 KB
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
# 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
# A strategy for `updateComposite` script. This type of update combines updates:
# requests `blocks` amount of blocks every `interval` milliceconds. More steps can
# be added so the strategy.
# Updates with more blocks take priority over updates with less.
# Example below: every second update 2 last blocks, every minute — 10 blocks and every 10 minutes — 100.
updateStrategy:
- interval: 1000
blocks: 2
- interval: 60000
blocks: 10
- interval: 600000
blocks: 100
# 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