Skip to content

Commit

Permalink
Merge pull request #25 from ehh-why-its-so-hard/tendermint-config
Browse files Browse the repository at this point in the history
feat: allow to set tendermint rpc peers and duplicate ip via role var…
  • Loading branch information
daniel1302 authored Nov 11, 2024
2 parents 68e7bc4 + 3ff9706 commit 1789e97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions roles/vega_core/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ vega_core_block_explorer_postgresql_database: "tendermint"
vega_core_block_explorer_postgresql_password: "tendermint"

vega_core_data_node_settings: {}
vega_core_tendermint_settings: {}

vega_core_with_health_check: true
vega_core_health_check_repository: "nebula-dex/vega-health-check"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ seed_mode = false
private_peer_ids = ""

# Toggle to disable guard against peers connecting from the same ip.
allow_duplicate_ip = false
allow_duplicate_ip = {{ vega_core_tendermint_settings['p2p.allow_duplicate_ip']|default(false)|lower }}

# Peer connection configuration.
handshake_timeout = "20s"
Expand Down Expand Up @@ -354,7 +354,7 @@ enable = false
# For Cosmos SDK-based chains, trust_period should usually be about 2/3 of the unbonding time (~2
# weeks) during which they can be financially punished (slashed) for misbehavior.
# TODO: configure ansible to check healthines of all_persistent_peers and add here only two healhy nodes
rpc_servers = ""
rpc_servers = "{{ vega_core_tendermint_settings['statesync.rpc_servers']|default("")|lower }}"
trust_height = 0
trust_hash = ""
# 1 month of trust
Expand Down

0 comments on commit 1789e97

Please sign in to comment.