Skip to content

Commit

Permalink
Merge pull request #1198 from Agoric/mfig/shorten-chain-cadence
Browse files Browse the repository at this point in the history
fix: shorten chain cadence to 2 seconds (instead of default 5)
  • Loading branch information
michaelfig authored Jun 28, 2020
2 parents bd57c14 + 12a5688 commit 8b80bf7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/deployment/ansible/install-cosmos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
vars:
- service: ag-chain-cosmos
- data: "{{ SETUP_HOME }}/{{ service }}/data"
- execline: "/usr/src/cosmic-swingset/lib/ag-chain-cosmos start --proxy_app=kvstore"
- execline: "/usr/src/cosmic-swingset/lib/ag-chain-cosmos start"
- PERSISTENT_PEERS: "{{ lookup('file', SETUP_HOME + '/' + service + '/data/peers.txt') }}"
- NUM_FILE_DESCRIPTORS: 2048
- BLOCK_CADENCE: 2s
roles:
- install-cosmos

14 changes: 14 additions & 0 deletions packages/deployment/ansible/roles/install-cosmos/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@
group: "{{ service }}"
mode: 0644

- name: Set proxy_app
lineinfile:
path: "/home/{{ service }}/.{{ service }}/config/config.toml"
state: present
regexp: '^proxy_app *='
line: 'proxy_app = "kvstore"'

- name: Set block commit cadence
lineinfile:
path: "/home/{{ service }}/.{{ service }}/config/config.toml"
state: present
regexp: '^timeout_commit *='
line: 'timeout_commit = "{{ BLOCK_CADENCE }}"'

- name: Set persistent_peers
lineinfile:
path: "/home/{{ service }}/.{{ service }}/config/config.toml"
Expand Down

0 comments on commit 8b80bf7

Please sign in to comment.