-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(deployment): better support for external validators Fixes #381 * feat(pserver): export genesis.json * fix(pserver): minor nits
- Loading branch information
1 parent
7b9b6e0
commit ae44690
Showing
5 changed files
with
77 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
packages/deployment/ansible/roles/cosmos-delegates/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
- name: "Check if /home/{{ service }}/cosmos-stakers.txt exists" | ||
stat: | ||
path: "/home/{{ service }}/cosmos-stakers.txt" | ||
register: stakers | ||
|
||
- name: "Get pubkeys and amounts from /home/{{ service }}/cosmos-stakers.txt" | ||
command: "\ | ||
sed -e 's/^\\([^:]*\\):\\([^:]*\\).*$/\\1 \\2/' \ | ||
/home/{{ service }}/cosmos-stakers.txt" | ||
args: | ||
warn: false | ||
register: stakers_data | ||
when: stakers.stat.exists | ||
|
||
- name: "Transfer stake to delegates" | ||
become_user: "{{ service }}" | ||
become: true | ||
shell: "\ | ||
echo 'mmmmmmmm' | ag-cosmos-helper tx send {{ STAKER }}-{{ STAKER_NODE }} \ | ||
{{ item }} --yes --chain-id={{ CHAIN_NAME }}" | ||
with_items: | ||
- "{{ stakers_data.stdout_lines }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters