Browse Source

config.toml changes

pull/1943/head
Greg Szabo 7 years ago
parent
commit
e9918a7323
2 changed files with 9 additions and 2 deletions
  1. +1
    -0
      ansible/roles/config/tasks/main.yml
  2. +8
    -2
      ansible/roles/config/templates/config.toml.j2

+ 1
- 0
ansible/roles/config/tasks/main.yml View File

@ -39,6 +39,7 @@
copy: "src={{service_genesis_file}} dest=/etc/{{service}}/genesis.json owner={{service}} group={{service}}"
- name: copy tendermint config.toml
tags: reconfig
when: validators == true or validators == 'true'
template:
src: config.toml.j2


+ 8
- 2
ansible/roles/config/templates/config.toml.j2 View File

@ -4,8 +4,9 @@
proxy_app = "tcp://127.0.0.1:46658"
moniker = "{{inventory_hostname}}"
fast_sync = true
db_backend = "leveldb"
log_level = "mempool:error,*:debug"
db_backend = "memdb"
#log_level = "mempool:error,*:debug"
log_level = "state:info,*:error"
[rpc]
laddr = "tcp://0.0.0.0:46657"
@ -21,8 +22,13 @@ create_empty_blocks = false
timeout_propose = 10000
skip_timeout_commit = true
timeout_commit = 1
wal_light = true
block_part_size = 262144
[p2p]
max_msg_packet_payload_size=65536
send_rate=51200000 # 50 MB/s
recv_rate=51200000 # 50 MB/s
laddr = "tcp://0.0.0.0:46656"
{% if validators == true or validators == 'true' %}
{% set comma = joiner(",") %}seeds = "{% for host in ((groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])))|difference(inventory_hostname) %}{{ comma() }}{{hostvars[host]["inventory_hostname"]}}:46656{% endfor %}"


Loading…
Cancel
Save