Skip to content

Commit

Permalink
make reward provider configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem authored and novalis committed Apr 27, 2022
1 parent d37a3c5 commit 07e21f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/tezos-reward-distributor/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
# important to prevent launch of concurrent payout processes
concurrencyPolicy: Forbid

schedule: {{ .Values.trd_schedule }}
schedule: {{ .Values.schedule }}
jobTemplate:
metadata:
{{- with .Values.podAnnotations }}
Expand Down
8 changes: 7 additions & 1 deletion charts/tezos-reward-distributor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ tezos_node_addr: archive-baking-node-0.archive-baking-node:8732
# default parameters.
signer_addr: tezos-signer-0.tezos-signer:6732

# The schedule for reward distribution cron job. By default, runs every 3 hours.
# The schedule for reward distribution cron job. By default, runs every 6 hours.
# When there is nothing to pay, it just exits.
schedule: "0 */6 * * *"

# Where TRD gets its payout data from.
# Defaults to rpc. When using rpc, you must set `tezos_node_addr` to an archive node.
#
# Pick one of "rpc", "tzstats", "tzkt"
reward_data_provider: "rpc"

extra_trd_args: "--do_not_publish_stats"

# This is an example of TRD config. Customize to your needs.
Expand Down

0 comments on commit 07e21f9

Please sign in to comment.