diff options
| author | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-07 11:30:49 -0300 |
|---|---|---|
| committer | Bitflash <admin@bitflash.network> | 2026-08-07 15:05:31 -0300 |
| commit | 5c2e66b70ab3c15603a6e2d7a4ea9e02f3cd0604 (patch) | |
| tree | 360c43d69ce716ad16e1e3868911a3e660c16302 /src/main_gui.cpp | |
| parent | 8c2e375600c0eb9bedb8f85ee4fa860825f23521 (diff) | |
pool: write dashboard status JSON
Diffstat (limited to 'src/main_gui.cpp')
| -rw-r--r-- | src/main_gui.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 875988f..41661b9 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp | |||
| @@ -123,6 +123,7 @@ static void PrintUsage() | |||
| 123 | printf(" /poolname=NAME\n"); | 123 | printf(" /poolname=NAME\n"); |
| 124 | printf(" /poolfee=PCT\n"); | 124 | printf(" /poolfee=PCT\n"); |
| 125 | printf(" /pooldashboard=URL (alias: /pooldash=URL)\n"); | 125 | printf(" /pooldashboard=URL (alias: /pooldash=URL)\n"); |
| 126 | printf(" /poolstatusfile=PATH (write pool status JSON for dashboards)\n"); | ||
| 126 | printf("\n"); | 127 | printf("\n"); |
| 127 | printf(".btf and rendezvous:\n"); | 128 | printf(".btf and rendezvous:\n"); |
| 128 | printf(" /connectbtf=PEER_BTF_ADDRESS\n"); | 129 | printf(" /connectbtf=PEER_BTF_ADDRESS\n"); |
| @@ -239,6 +240,10 @@ static void ParseStartupArguments(int argc, char* argv[]) | |||
| 239 | if (!poolFee.empty()) | 240 | if (!poolFee.empty()) |
| 240 | dPoolFeePercent = atof(poolFee.c_str()); | 241 | dPoolFeePercent = atof(poolFee.c_str()); |
| 241 | 242 | ||
| 243 | string poolStatusFile = argval2(argc, argv, "/poolstatusfile", "-poolstatusfile"); | ||
| 244 | if (!poolStatusFile.empty()) | ||
| 245 | strPoolStatusFile = poolStatusFile; | ||
| 246 | |||
| 242 | string btfConnect = argval2(argc, argv, "/connectbtf", "-connectbtf"); | 247 | string btfConnect = argval2(argc, argv, "/connectbtf", "-connectbtf"); |
| 243 | if (!btfConnect.empty()) | 248 | if (!btfConnect.empty()) |
| 244 | strBtfConnect = btfConnect; | 249 | strBtfConnect = btfConnect; |