Browse Source

Reorganized public_testnet app_option, changed config.toml to create empty blocks every second

pull/1943/head
Greg Szabo 7 years ago
parent
commit
555d591c80
4 changed files with 31 additions and 38 deletions
  1. +14
    -22
      ansible/app_options_files/public_testnet
  2. +1
    -1
      ansible/install.yml
  3. +1
    -1
      ansible/roles/config/tasks/main.yml
  4. +15
    -14
      ansible/roles/config/templates/config.toml.j2

+ 14
- 22
ansible/app_options_files/public_testnet View File

@ -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",


+ 1
- 1
ansible/install.yml View File

@ -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

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

@ -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


+ 15
- 14
ansible/roles/config/templates/config.toml.j2 View File

@ -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 %}"


Loading…
Cancel
Save