mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-28 11:56:15 +00:00
persistent_peers changes
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#genesis_file: "<undefined>"
|
||||
app_options_file: "app_options_files/public_testnet"
|
||||
seeds: ""
|
||||
persistent_peers: ""
|
||||
testnet_name: testnet1
|
||||
validators: true
|
||||
|
||||
|
||||
@@ -83,14 +83,12 @@ unsafe = false
|
||||
laddr = "tcp://0.0.0.0:46656"
|
||||
|
||||
# Comma separated list of seed nodes to connect to
|
||||
{% 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]["nodeid"]}}@{{hostvars[host]["inventory_hostname"]}}:46656{% endfor %}"
|
||||
{% else %}
|
||||
seeds = "{{ seeds | default() }}"
|
||||
{% endif %}
|
||||
|
||||
# Comma separated list of nodes to keep persistent connections to
|
||||
persistent_peers = ""
|
||||
{% set comma = joiner(",") %}persistent_peers = "{% for host in ((groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])))|difference(inventory_hostname) %}{{ comma() }}{{hostvars[host]["nodeid"]}}@{{hostvars[host]["inventory_hostname"]}}:46656{% endfor %}"
|
||||
{% else %}
|
||||
persistent_peers = "{{ persistent_peers | default() }}"
|
||||
|
||||
# Path to address book
|
||||
addr_book_file = "config/addrbook.json"
|
||||
|
||||
Reference in New Issue
Block a user