Merge pull request #33 from ConsenSys/required-blocks

adding in required blocks param
pull/34/head 0.3.6
Joshua Fernandes 3 years ago committed by GitHub
commit 0fdd3bc3be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      README.md
  2. 4
      templates/config.toml.j2

@ -54,6 +54,7 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
| `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', 'classic', 'mordor', 'kotti', 'dev' and 'custom' |
| `besu_genesis_path` | ___unset___ | The path to the genesis file, only valid when `besu_network` is `custom` |
| `besu_required_blocks` | [] | Requires a peer with the specified block number to have the specified hash when connecting, or Besu rejects that peer |
| `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' |
| `besu_p2p_port` | 30303 | Specifies the P2P listening ports (UDP and TCP). Ports must be exposed appropriately |

@ -7,6 +7,10 @@ logging="{{besu_log_level}}"
node-private-key-file="{{besu_node_private_key_file}}"
{% endif %}
{% if besu_required_blocks|length > 0 %}
required-blocks=[{{besu_required_blocks|map('to_json')|join(',')}}]
{% endif %}
{% if besu_target_gas_limit is defined %}
# target gas limit
target-gas-limit="{{ besu_target_gas_limit }}"

Loading…
Cancel
Save