Move data-api comment out of the Jinja args expression
Jinja has no comment syntax inside {{ }}, so the comment would break
templating.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018STDcc5BaYxPMNA9S8Wycs
This commit is contained in:
+2
-2
@@ -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 [])
|
||||
|
||||
Reference in New Issue
Block a user