diff --git a/tasks/main.yml b/tasks/main.yml index 7dd2305..6ebdf40 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -238,6 +238,8 @@ command: - p2pool # P2Pool takes "--opt value" only; "--opt=value" makes it exit. + # --data-api/--local-api feed the stats sidecar below. + # local/stratum lists worker IPs, so /api is never served. args: >- {{ ['--host', 'monerod', @@ -245,8 +247,6 @@ '--wallet', monero_p2pool_wallet_address, '--stratum', '0.0.0.0:3333', '--p2p', '0.0.0.0:37889', - # JSON stats for the sidecar below. local/stratum lists - # worker IPs, so /api is never served directly. '--data-api', '/api', '--local-api'] + ([] if monero_p2pool_chain == 'main' else ['--' ~ monero_p2pool_chain]) + (['--addpeers', monero_p2pool_addpeers | join(',')] if monero_p2pool_addpeers else [])