diff --git a/defaults/main.yml b/defaults/main.yml index 7ab2f05..180884e 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -32,6 +32,8 @@ geth_aliases: # Sync mode: full, fast, light geth_sync_mode: 'light' +# Maximum number of untrusted peers that can connect +geth_max_peers: 25 # Maximum percentage of time allowed for serving LES requests (0-90) geth_light_serv: 90 # Maximum number of LES client peers (default: 100) diff --git a/tasks/container.yml b/tasks/container.yml index 5935905..7738184 100644 --- a/tasks/container.yml +++ b/tasks/container.yml @@ -34,6 +34,7 @@ {% endif %} --verbosity={{ geth_log_level_id }} --cache={{ geth_cache }} + --maxpeers={{ geth_max_peers }} --port={{ geth_port }} --nat=extip:{{ geth_public_addr }} --unlock={{ geth_account_addr }}