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.

46 lines
1.3 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":10,
  16. "name":"{{hostvars[host]["inventory_hostname"]}}"
  17. }
  18. {% endfor %}
  19. {% endif %}
  20. ],
  21. "app_hash":"",
  22. "app_options": {
  23. {% if app_options_file is defined %}
  24. {% include app_options_file %}
  25. {% endif %}
  26. }
  27. {% if service == 'ethermint' %}
  28. ,
  29. "config": {
  30. "chainId": 15,
  31. "homesteadBlock": 0,
  32. "eip155Block": 0,
  33. "eip158Block": 0
  34. },
  35. "nonce": "0xdeadbeefdeadbeef",
  36. "timestamp": "0x00",
  37. "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  38. "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
  39. "difficulty": "0x40",
  40. "gasLimit": "0x8000000",
  41. "alloc": {
  42. "0x7eff122b94897ea5b0e2a9abf47b86337fafebdc": { "balance": "10000000000000000000000000000000000" },
  43. "0xc6713982649D9284ff56c32655a9ECcCDA78422A": { "balance": "10000000000000000000000000000000000" }
  44. }
  45. {% endif %}
  46. }