Skip to content

Commit

Permalink
Mumbai TRD changes (#569)
Browse files Browse the repository at this point in the history
one param changed (--release_override)
  • Loading branch information
nicolasochem authored Jul 24, 2023
1 parent a53fd7f commit ca648da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions charts/tezos-reward-distributor/scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@ if [ "${DRY_RUN}" == "false" ]; then
else
dry_run_arg="--dry_run"
fi
if [ "${ADJUSTED_EARLY_PAYOUTS}" == "false" ]; then
aep_arg=""
else
aep_arg="--adjusted_early_payouts"
fi
python src/main.py \
-M 2 \
--reward_data_provider ${REWARD_DATA_PROVIDER} \
--node_addr_public ${TEZOS_NODE_ADDR} \
--node_endpoint ${TEZOS_NODE_ADDR} \
--base_directory /trd \
--signer_endpoint ${SIGNER_ADDR} \
--release_override ${RELEASE_OVERRIDE} \
--initial_cycle ${INITIAL_CYCLE} \
-N ${NETWORK} \
${EXTRA_TRD_ARGS} \
${dry_run_arg}
${dry_run_arg} \
${aep_arg}
4 changes: 2 additions & 2 deletions charts/tezos-reward-distributor/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ spec:
value: "{{ .Values.extra_trd_args }}"
- name: NETWORK
value: "{{ .Values.network }}"
- name: RELEASE_OVERRIDE
value: "{{ .Values.release_override }}"
- name: ADJUSTED_EARLY_PAYOUTS
value: "{{ .Values.adjusted_early_payouts }}"
- name: INITIAL_CYCLE
value: "{{ .Values.initial_cycle }}"
- name: DRY_RUN
Expand Down
4 changes: 2 additions & 2 deletions charts/tezos-reward-distributor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ reward_data_provider: "rpc"
# Tezos Network. Can be MAINNET or GHOSTNET
network: MAINNET

# Release override: set to -5 to pay just finished cycle
release_override: -5
# Enable adjusted early payouts. Pay out 6-9 days after delegation instead of 18-21 days.
adjusted_early_payouts: false

# Set initial cycle to pay rewards from. Set to -1 to start from just finished cycle.
initial_cycle: -1
Expand Down

0 comments on commit ca648da

Please sign in to comment.