Skip to content

Commit

Permalink
Add a nonce collision workaround for bridge relayer reward claiming j…
Browse files Browse the repository at this point in the history
…ob (#336)
  • Loading branch information
rzadp authored Mar 25, 2024
1 parent 0491be6 commit 977fc91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/bridges-common-relay/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: bridges-common-relay
description: A Helm chart for bridges-common-relay
type: application
version: 1.1.0
version: 1.1.1
maintainers:
- name: Parity
url: https://github.com/paritytech/helm-charts
Expand Down
2 changes: 1 addition & 1 deletion charts/bridges-common-relay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This is intended behaviour. Make sure to run `git add -A` once again to stage ch

# Parity Bridges Common helm chart

![Version: 1.1.0](https://img.shields.io/badge/Version-1.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 1.1.1](https://img.shields.io/badge/Version-1.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

This helm chart installs [Parity Bridges Common](https://github.com/paritytech/parity-bridges-common) relayer.

Expand Down
3 changes: 3 additions & 0 deletions charts/bridges-common-relay/templates/cronjob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ spec:
fi
echo "{{ $val.name }} on {{ $reward_owner }} has a reward of ${reward}."
# Avoid nonce collision with "ThisChain".
{{ if eq $reward_owner "BridgedChain" }}sleep 10{{ end }}
polkadot-js-api --ws "$RPC_URL" \
--seed "$(cat /secrets/{{ $val.seed_phrase_secret_name }})" \
tx.bridgeRelayers.claimRewards "$rewards_account_params"
Expand Down

0 comments on commit 977fc91

Please sign in to comment.