diff --git a/ansible/app_options_files/public_testnet b/ansible/app_options_files/public_testnet index 8a6732fe0..10f5f9d90 100644 --- a/ansible/app_options_files/public_testnet +++ b/ansible/app_options_files/public_testnet @@ -13,6 +13,20 @@ } ] }, + { + "name": "gregkey", + "address": "B01C264BFE9CBD45458256E613A6F07061A3A6B6", + "pub_key": { + "type": "ed25519", + "data": "E1FFBD187FA2A922CE1B367532CEAC1AD8E606D576AB0D2E2CAA7EC6B7DAC10F" + }, + "coins": [ + { + "denom": "mycoin", + "amount": 9007199254740991 + } + ] + }, { "name": "anton", "address": "40CC622438D3E42148A1FFD3A27C07C100F8FA3D", @@ -93,28 +107,6 @@ } ] }, - { - "name": "gregkey", - "address": "B01C264BFE9CBD45458256E613A6F07061A3A6B6", - "pubkey": { - "type": "ed25519", - "data": "E1FFBD187FA2A922CE1B367532CEAC1AD8E606D576AB0D2E2CAA7EC6B7DAC10F" - }, - "coins": [ - { - "denom": "mycoin", - "amount": 3478765434568 - }, - { - "denom": "buckyball", - "amount": 8367251830291 - }, - { - "denom": "playmoney", - "amount": 9999999999999 - } - ] - }, { "name": "shadow", "address": "B140EFAAE6D5CA1C8E98814C557AF7112E3B9EAE", diff --git a/ansible/install.yml b/ansible/install.yml index e46bd6398..82c34dae0 100644 --- a/ansible/install.yml +++ b/ansible/install.yml @@ -7,6 +7,6 @@ roles: - install - {role: generic-service, when: service == 'tendermint'} - - {role: config, testnet_name: "{{lookup('env','TF_VAR_TESTNET_NAME')}}"} + - {role: config, testnet_name: "{{lookup('env','TF_VAR_TESTNET_NAME')}}", tags: reconfig } - start diff --git a/ansible/roles/config/tasks/main.yml b/ansible/roles/config/tasks/main.yml index 9a9fe3e5f..730bf3abb 100644 --- a/ansible/roles/config/tasks/main.yml +++ b/ansible/roles/config/tasks/main.yml @@ -39,7 +39,7 @@ copy: "src={{service_genesis_file}} dest=/etc/{{service}}/genesis.json owner={{service}} group={{service}}" - name: copy tendermint config.toml - tags: reconfig + tags: reconfig-toml when: validators == true or validators == 'true' template: src: config.toml.j2 diff --git a/ansible/roles/config/templates/config.toml.j2 b/ansible/roles/config/templates/config.toml.j2 index 79e39c39f..b7f3d324d 100644 --- a/ansible/roles/config/templates/config.toml.j2 +++ b/ansible/roles/config/templates/config.toml.j2 @@ -11,24 +11,25 @@ log_level = "state:info,*:error" [rpc] laddr = "tcp://0.0.0.0:46657" -[mempool] -recheck = false -broadcast = false -wal_dir = "" +#[mempool] +#recheck = false +#broadcast = false +#wal_dir = "" [consensus] -max_block_size_txs = 10000 -create_empty_blocks = false -timeout_propose = 10000 -skip_timeout_commit = true -timeout_commit = 1 -wal_light = true -block_part_size = 262144 +#max_block_size_txs = 10000 +#create_empty_blocks = false +#timeout_propose = 10000 +#skip_timeout_commit = true +#timeout_commit = 1 +#wal_light = true +#block_part_size = 262144 +create_empty_blocks_interval = 1 [p2p] -max_msg_packet_payload_size=65536 -send_rate=51200000 # 50 MB/s -recv_rate=51200000 # 50 MB/s +#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 %}"