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.

50 lines
1.4 KiB

  1. {
  2. "genesis_time":"{{ansible_date_time.iso8601}}",
  3. "chain_id":"{{testnet_name}}",
  4. "validators":
  5. [
  6. {% if (validators == true) or (validators == 'true') %}
  7. {% set comma = joiner(",") %}
  8. {% for host in (groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])) %}
  9. {{ comma() }}
  10. {
  11. "pub_key": {
  12. "data": "{{hostvars[host]["pubkey"]["data"]}}",
  13. "type": "{{hostvars[host]["pubkey"]["type"]}}"
  14. },
  15. "power":1000,
  16. "name":"{{hostvars[host]["inventory_hostname"]}}"
  17. }
  18. {% endfor %}
  19. {% endif %}
  20. ],
  21. "app_hash":"",
  22. {% if service == 'basecoind' %}
  23. "app_state": {
  24. {% else %}
  25. "app_options": {
  26. {% endif %}
  27. {% if app_options_file is defined %}
  28. {% include app_options_file %}
  29. {% endif %}
  30. }
  31. {% if service == 'ethermint' %}
  32. ,
  33. "config": {
  34. "chainId": 15,
  35. "homesteadBlock": 0,
  36. "eip155Block": 0,
  37. "eip158Block": 0
  38. },
  39. "nonce": "0xdeadbeefdeadbeef",
  40. "timestamp": "0x00",
  41. "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  42. "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  43. "difficulty": "0x40",
  44. "gasLimit": "0x8000000",
  45. "alloc": {
  46. "0x7eff122b94897ea5b0e2a9abf47b86337fafebdc": { "balance": "10000000000000000000000000000000000" },
  47. "0xc6713982649D9284ff56c32655a9ECcCDA78422A": { "balance": "10000000000000000000000000000000000" }
  48. }
  49. {% endif %}
  50. }