adding in tx-pool settings

pull/44/head 0.3.19
Joshua Fernandes 2 years ago
parent d063f67eef
commit 09fa1f8308
  1. 6
      README.md
  2. 7
      defaults/main.yml
  3. 8
      templates/config.toml.j2

@ -106,7 +106,11 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
| `besu_privacy_marker_tx_signing_key_file` | "" | Path of the private key file used to sign Privacy Marker Transactions. If you do not specify this option, Besu signs each transaction with a different randomly generated key. |
| `besu_xdns_enabled` | "false" | DNS support with a trusted DNS provider in private networks because of limitations where IP addresses can change. For example, when using Kubernetes pods |
| `besu_target_gas_limit` | ___unset___ | Configuration of the target gas limit |
| `besu_tx_pool_limit_by_account_percentage` | 5 | The maximum number of transactions in a block, per account. Defaults to 5 top prevent a DDOS attack. This uses a float value [0..1], so setting it to 1 means a single sender can fill the entire tx pool. |
| `besu_tx_pool_future_max_by_account` | 64 | The maximum number of future transactions kept in the transaction pool, per account. |
| `besu_tx_pool_max_size` | 4096 | The maximum number of transactions kept in the transaction pool |
| `besu_tx_pool_price_bump` | 10 | The price bump percentage to replace an existing transaction |
| `besu_tx_pool_retention_hours` | 13 | The maximum period, in hours, to hold pending transactions in the transaction pool |
### Example Playbook

@ -76,6 +76,13 @@ besu_local_permissions_accounts: []
besu_local_permissions_nodes: []
besu_xdns_enabled: "false"
besu_static_nodes: []
# float values in the range [0..1], 1=single sender can fill the entire tx pool
# https://github.com/hyperledger/besu/issues/4611
besu_tx_pool_limit_by_account_percentage: 1
besu_tx_pool_future_max_by_account: 64
besu_tx_pool_max_size: 4096
besu_tx_pool_price_bump: 10
besu_tx_pool_retention_hours: 13
# privacy
besu_privacy_enabled: "false"

@ -32,7 +32,6 @@ engine-host-allowlist=[{{besu_engine_host_allowlist|map('to_json')|join(',')}}]
{% endif %}
{% endif %}
{% if besu_node_private_key_file != "" %}
# private_key
node-private-key-file="{{besu_node_private_key_file}}"
@ -121,6 +120,13 @@ p2p-port={{besu_p2p_port}}
max-peers={{besu_max_peers}}
{% endif %}
# tx pool
tx-pool-limit-by-account-percentage={{ besu_tx_pool_limit_by_account_percentage }}
tx-pool-future-max-by-account={{ besu_tx_pool_future_max_by_account }}
tx-pool-max-size={{ besu_tx_pool_max_size }}
tx-pool-price-bump={{ besu_tx_pool_price_bump }}
tx-pool-retention-hours={{ besu_tx_pool_retention_hours }}
# metrics
metrics-enabled=true
metrics-host="{{besu_metrics_host}}"

Loading…
Cancel
Save