You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.3 KiB

7 years ago
  1. # This is a TOML config file.
  2. # For more information, see https://github.com/toml-lang/toml
  3. proxy_app = "tcp://127.0.0.1:46658"
  4. moniker = "{{inventory_hostname}}"
  5. fast_sync = true
  6. {% if service == 'tendermint' %}
  7. db_backend = "memdb"
  8. log_level = "mempool:error,*:debug"
  9. {% else %}
  10. db_backend = "leveldb"
  11. log_level = "state:info,*:error"
  12. {% endif %}
  13. [rpc]
  14. laddr = "tcp://0.0.0.0:46657"
  15. {% if service == 'tendermint' %}
  16. [mempool]
  17. recheck = false
  18. broadcast = false
  19. wal_dir = ""
  20. [consensus]
  21. max_block_size_txs = 10000
  22. create_empty_blocks = false
  23. timeout_propose = 10000
  24. skip_timeout_commit = true
  25. timeout_commit = 1
  26. wal_light = true
  27. block_part_size = 262144
  28. create_empty_blocks_interval = 1
  29. {% else %}
  30. [consensus]
  31. create_empty_blocks_interval = 1
  32. {% endif %}
  33. [p2p]
  34. {% if service == 'tendermint' %}
  35. max_msg_packet_payload_size=65536
  36. send_rate=51200000 # 50 MB/s
  37. recv_rate=51200000 # 50 MB/s
  38. {% endif %}
  39. laddr = "tcp://0.0.0.0:46656"
  40. {% if validators == true or validators == 'true' %}
  41. {% 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 %}"
  42. {% else %}
  43. seeds = "{{ seeds | default() }}"
  44. {% endif %}