Publish sanitized P2Pool hashrate at www.eom.dev/p2pool/stats.json #1
+2
-2
@@ -238,6 +238,8 @@
|
|||||||
command:
|
command:
|
||||||
- p2pool
|
- p2pool
|
||||||
# P2Pool takes "--opt value" only; "--opt=value" makes it exit.
|
# 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: >-
|
args: >-
|
||||||
{{
|
{{
|
||||||
['--host', 'monerod',
|
['--host', 'monerod',
|
||||||
@@ -245,8 +247,6 @@
|
|||||||
'--wallet', monero_p2pool_wallet_address,
|
'--wallet', monero_p2pool_wallet_address,
|
||||||
'--stratum', '0.0.0.0:3333',
|
'--stratum', '0.0.0.0:3333',
|
||||||
'--p2p', '0.0.0.0:37889',
|
'--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']
|
'--data-api', '/api', '--local-api']
|
||||||
+ ([] if monero_p2pool_chain == 'main' else ['--' ~ monero_p2pool_chain])
|
+ ([] if monero_p2pool_chain == 'main' else ['--' ~ monero_p2pool_chain])
|
||||||
+ (['--addpeers', monero_p2pool_addpeers | join(',')] if monero_p2pool_addpeers else [])
|
+ (['--addpeers', monero_p2pool_addpeers | join(',')] if monero_p2pool_addpeers else [])
|
||||||
|
|||||||
Reference in New Issue
Block a user