From 30a605ffd0ba80f86bfc45a234ea3f8c3a4764e1 Mon Sep 17 00:00:00 2001 From: Edward Evans Date: Fri, 15 May 2020 15:09:19 +1000 Subject: [PATCH] Allow string-set bootnodes to still work Signed-off-by: Edward Evans --- templates/config.toml.j2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/config.toml.j2 b/templates/config.toml.j2 index 901965b..03552da 100644 --- a/templates/config.toml.j2 +++ b/templates/config.toml.j2 @@ -94,13 +94,18 @@ permissions-nodes-contract-address="{{ besu_permissions_nodes_contract_address } {% endif %} {% if besu_bootnodes|length > 0 %} +{% if besu_bootnodes is string %} +# bootnodes +bootnodes={{besu_bootnodes}} +{% else %} # bootnodes bootnodes=[{{besu_bootnodes|map('to_json')|join(',')}}] {% endif %} +{% endif %} {% if orion_version is defined %} # Orion privacy-enabled=true privacy-url="http://127.0.0.1:8888" privacy-public-key-file="{{ orion_config_dir }}/{{ orion_key_name }}.pub" -{% endif %} \ No newline at end of file +{% endif %}