Skip to content

Commit

Permalink
Merge pull request #163 from InjectiveLabs/feat/horacle-threshold
Browse files Browse the repository at this point in the history
Moves horacle threshold to env
  • Loading branch information
nmarcetic authored Dec 18, 2024
2 parents 0e3754d + b41c56a commit e913049
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
2 changes: 2 additions & 0 deletions docker/.env.mainnet.example
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,5 @@ INDEXER_MAX_BLOCK_FETCH_JOBS=8
INDEXER_MIN_BLOCK_FETCH_JOBS=2
INDEXER_EVENTPROVIDER_BLOCK_FETCH_JOBS=2
INDEXER_HTTP_HORACLE_ADDR="https://k8s.global.mainnet.horacle.injective.network/height/latest"
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD=30
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD=60
2 changes: 2 additions & 0 deletions docker/.env.testnet.example
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,5 @@ INDEXER_MAX_BLOCK_FETCH_JOBS=8
INDEXER_MIN_BLOCK_FETCH_JOBS=2
INDEXER_EVENTPROVIDER_BLOCK_FETCH_JOBS=2
INDEXER_HTTP_HORACLE_ADDR="https://k8s.testnet.horacle.injective.network/height/latest"
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD=30
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD=60
24 changes: 12 additions & 12 deletions docker/addons/docker-compose.dex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ services:
INDEXER_HTTP_TLS_CERT: /apps/data/public.crt
INDEXER_HTTP_TLS_KEY: /apps/data/private.key
INDEXER_HTTP_HORACLE_ADDR: ${INDEXER_HTTP_HORACLE_ADDR}
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: 10
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: 60
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: ${INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD}
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: ${INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD}
ports:
- 5500:5500
- 6073:6060
Expand Down Expand Up @@ -121,8 +121,8 @@ services:
INDEXER_HTTP_TLS_CERT: /apps/data/public.crt
INDEXER_HTTP_TLS_KEY: /apps/data/private.key
INDEXER_HTTP_HORACLE_ADDR: ${INDEXER_HTTP_HORACLE_ADDR}
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: 10
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: 60
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: ${INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD}
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: ${INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD}
INDEXER_EXCHANGE_RPC_ADDR: ${INDEXER_EXCHANGE_RPC_ADDR}
ports:
- 4445:4445
Expand Down Expand Up @@ -189,8 +189,8 @@ services:
INDEXER_HTTP_TLS_CERT: /apps/data/public.crt
INDEXER_HTTP_TLS_KEY: /apps/data/private.key
INDEXER_HTTP_HORACLE_ADDR: ${INDEXER_HTTP_HORACLE_ADDR}
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: 10
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: 60
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: ${INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD}
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: ${INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD}
ports:
- 6075:6060
- 19911:9910
Expand Down Expand Up @@ -244,8 +244,8 @@ services:
INDEXER_HTTP_TLS_CERT: /apps/data/public.crt
INDEXER_HTTP_TLS_KEY: /apps/data/private.key
INDEXER_HTTP_HORACLE_ADDR: ${INDEXER_HTTP_HORACLE_ADDR}
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: 10
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: 60
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: ${INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD}
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: ${INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD}
ports:
- 4446:4444
- 9911:9910
Expand Down Expand Up @@ -306,8 +306,8 @@ services:
INDEXER_HTTP_TLS_CERT: /apps/data/public.crt
INDEXER_HTTP_TLS_KEY: /apps/data/private.key
INDEXER_HTTP_HORACLE_ADDR: ${INDEXER_HTTP_HORACLE_ADDR}
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: 10
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: 60
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: ${INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD}
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: ${INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD}
ports:
- 6069:6060
- 19912:9910
Expand Down Expand Up @@ -366,8 +366,8 @@ services:
INDEXER_HTTP_TLS_CERT: /apps/data/public.crt
INDEXER_HTTP_TLS_KEY: /apps/data/private.key
INDEXER_HTTP_HORACLE_ADDR: ${INDEXER_HTTP_HORACLE_ADDR}
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: 10
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: 60
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: ${INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD}
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: ${INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD}
ports:
- 4443:4444
- 6070:6060
Expand Down
8 changes: 4 additions & 4 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ services:
INDEXER_HTTP_TLS_CERT: /apps/data/public.crt
INDEXER_HTTP_TLS_KEY: /apps/data/private.key
INDEXER_HTTP_HORACLE_ADDR: ${INDEXER_HTTP_HORACLE_ADDR}
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: 10
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: 60
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: ${INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD}
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: ${INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD}
ports:
- 6071:6060
- 19910:19910
Expand Down Expand Up @@ -288,8 +288,8 @@ services:
INDEXER_HTTP_TLS_CERT: /apps/data/public.crt
INDEXER_HTTP_TLS_KEY: /apps/data/private.key
INDEXER_HTTP_HORACLE_ADDR: ${INDEXER_HTTP_HORACLE_ADDR}
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: 10
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: 60
INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD: ${INDEXER_HTTP_HORACLE_BLOCK_THRESHOLD}
INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD: ${INDEXER_HTTP_HORACLE_TIMESTAMP_THRESHOLD}
ports:
- 4444:4444
- 9910:9910
Expand Down

0 comments on commit e913049

Please sign in to comment.