From a8feac34bdecbb85594eea41318dc36f85b65b64 Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Sat, 29 Aug 2020 22:01:39 -0600 Subject: [PATCH] Add networks Add support for Ethereum Classic, mordor, and kotti. Signed-off-by: Danno Ferrin --- README.md | 2 +- templates/config.toml.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 67b4edd..78bced9 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults | `besu_host_ip` | "" | The host IP that Besu uses for the P2P network. This specifies the host on which P2P listens | | `besu_default_ip` | "{{ default(ansible_host) \| default('127.0.0.1') }}" | The fallback default for `besu_host_ip` | | `besu_max_peers` | ___unset___ | The maximum number of P2P connections you can establish | -| `besu_network` | mainnet | The network that this node will join. Other values are 'ropsten', 'rinkeby', 'goerli', 'dev' and 'custom' | +| `besu_network` | mainnet | The network that this node will join. Other values are 'ropsten', 'rinkeby', 'goerli', 'classic', 'mordor', 'kotti', 'dev' and 'custom' | | `besu_genesis_path` | ___unset___ | The path to the genesis file, only valid when `besu_network` is `custom` | | `besu_sync_mode` | FAST | Specifies the synchronization mode. Other values are 'FULL' | | `besu_log_level` | INFO | The log level to use. Other log levels are 'OFF', 'FATAL', 'WARN', 'INFO', 'DEBUG', 'TRACE', 'ALL' | diff --git a/templates/config.toml.j2 b/templates/config.toml.j2 index 5cc139a..3e173c0 100644 --- a/templates/config.toml.j2 +++ b/templates/config.toml.j2 @@ -7,7 +7,7 @@ logging="{{besu_log_level}}" node-private-key-file="{{besu_node_private_key_file}}" {% endif %} -{% if besu_network.lower() in ["mainnet", "rinkeby", "goerli", "ropsten", "dev"] %} +{% if besu_network.lower() in ["mainnet", "rinkeby", "goerli", "ropsten", "classic", "mordor", "kotti", "dev"] %} network="{{besu_network}}" {% else %} genesis-file="{{ besu_genesis_path }}"