Allow data-storage-format, engine-jwt-disabled, engine-jwt-secret and engine-rpc-port to be configured

pull/36/head
Simon Dudley 3 years ago
parent 083cdd1e82
commit e44356746f
  1. 4
      README.md
  2. 13
      templates/config.toml.j2

@ -57,6 +57,10 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
| `besu_required_blocks` | [] | Requires a peer with the specified block number to have the specified hash when connecting, or Besu rejects that peer | | `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_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_log_level` | INFO | The log level to use. Other log levels are 'OFF', 'FATAL', 'WARN', 'INFO', 'DEBUG', 'TRACE', 'ALL' |
| `besu_data_storage_format` | ___unset___ | Data storage format. Possible values are 'FOREST' and 'BONSAI'. The besu default is 'FOREST' |
| `besu_engine_jwt_disabled` | ___unset___ | Disables authentication for the Engine API. The besu default is false. |
| `besu_engine_jwt_secret` | ___unset___ | Shared secret used to authenticate consensus clients when using the Engine JSON-RPC API (both HTTP and WebSocket). Contents of file must be at least 32 hex-encoded bytes and not begin with 0x. |
| `besu_engine_rpc_port` | ___unset___ | The listening port for the Engine API calls (ENGINE, ETH) for JSON-RPC over HTTP and WebSocket. The besu default is 8551 |
| `besu_p2p_port` | 30303 | Specifies the P2P listening ports (UDP and TCP). Ports must be exposed appropriately | | `besu_p2p_port` | 30303 | Specifies the P2P listening ports (UDP and TCP). Ports must be exposed appropriately |
| `besu_min_gas` | 1000 | The minimum price that a transaction offers for it to be included in a mined block | | `besu_min_gas` | 1000 | The minimum price that a transaction offers for it to be included in a mined block |
| `besu_miner_enabled` | false | Enables mining when the node is started | | `besu_miner_enabled` | false | Enables mining when the node is started |

@ -1,6 +1,19 @@
# data # data
data-path="{{besu_data_dir}}" data-path="{{besu_data_dir}}"
logging="{{besu_log_level}}" logging="{{besu_log_level}}"
{% if besu_data_storage_format is defined and besu_data_storage_format != "" %}
data-storage-format="{{besu_data_storage_format}}"
{% endif %}
{% if besu_engine_jwt_disabled is defined and besu_engine_jwt_disabled|bool == True %}
engine-jwt-disabled=true
{% endif %}
{% if besu_engine_jwt_secret is defined and besu_engine_jwt_secret != "" %}
engine-jwt-secret="{{besu_engine_jwt_secret}}"
{% endif %}
{% if besu_engine_rpc_port is defined and besu_engine_rpc_port != "" %}
engine-rpc-port={{besu_engine_rpc_port}}
{% endif %}
{% if besu_node_private_key_file != "" %} {% if besu_node_private_key_file != "" %}
# private_key # private_key

Loading…
Cancel
Save