Skip to content

Commit

Permalink
Remove dailynet
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Mar 24, 2024
1 parent 3c072c5 commit f12d856
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
3 changes: 1 addition & 2 deletions build/api/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

curl https://teztnets.xyz/teztnets.json > /teztnets.json
mondaynet_rpc=$(cat /teztnets.json | jq '. | to_entries | map(select(.key | startswith("monday"))) | map(.value.rpc_url)[0]')
dailynet_rpc=$(cat /teztnets.json | jq '. | to_entries | map(select(.key | startswith("daily"))) | map(.value.rpc_url)[0]')

DAILYNET_RPC=$dailynet_rpc MONDAYNET_RPC=$mondaynet_rpc /go/bin/api
MONDAYNET_RPC=$mondaynet_rpc /go/bin/api
3 changes: 1 addition & 2 deletions build/indexer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

curl https://teztnets.xyz/teztnets.json > /teztnets.json
mondaynet_rpc=$(cat /teztnets.json | jq '. | to_entries | map(select(.key | startswith("monday"))) | map(.value.rpc_url)[0]')
dailynet_rpc=$(cat /teztnets.json | jq '. | to_entries | map(select(.key | startswith("daily"))) | map(.value.rpc_url)[0]')

DAILYNET_RPC=$dailynet_rpc MONDAYNET_RPC=$mondaynet_rpc /go/bin/indexer
MONDAYNET_RPC=$mondaynet_rpc /go/bin/indexer
12 changes: 0 additions & 12 deletions configs/testnets.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
rpc:
dailynet:
uri: ${DAILYNET_RPC}
timeout: 20
requests_per_second: 15
weeklynet:
uri: ${WEEKLYNET_RPC}
timeout: 20
Expand Down Expand Up @@ -47,21 +43,14 @@ api:
mempool_enabled: false
sandbox_mode: false
rpc:
dailynet: ${DAILYNET_RPC}
weeklynet: ${WEEKLYNET_RPC}
networks:
- dailynet
- weeklynet

indexer:
project_name: indexer
sentry_enabled: false
networks:
dailynet:
receiver_threads: 5
periodic:
info_base_url: https://teztnets.xyz
schedule: "0 5 0 * * *" # at 00:05:00 every day
weeklynet:
receiver_threads: 10
periodic:
Expand All @@ -70,5 +59,4 @@ indexer:

scripts:
networks:
- dailynet
- weeklynet

0 comments on commit f12d856

Please sign in to comment.