Commit 58bdb31
committed
Public per-worker page shows payout txids + blocks found
Miners can now audit their own Thunder txids without needing admin
credentials. The stratum-username-is-your-Thunder-address model
already exposes worker identity publicly, so adding payment history
and blocks doesn't leak new sensitive info — it just closes the
'trust the operator' gap.
Two new cards on /worker/:name below the existing audit card:
'Payouts to your Thunder address' — one row per settled Thunder tx
from the pool to this address, with full txid, amount, fee, and
'when'. Empty-state copy explains why (reserve not funded yet).
Footer shows running total paid + tx count.
'Blocks you found' — one row per block where this worker's share
crossed the network target. Includes reward + fees + full block
hash. Note explains how to look up the coinbase via
'bitcoin-cli getblock <hash> 2'. Only rendered when there's at
least one block.
stats.worker() now returns .payouts and .blocks alongside the
existing .shares/.buckets/.pps_audit; the '{...w}' spread in the
route auto-propagates them. Both queries are LIMITed (100 payouts,
25 blocks) so a mega-miner with tons of blocks doesn't blow up the
page.
Empty-state / missing-table handling: payouts SELECT is wrapped in
try/catch so an ancient DB without the 'payouts' table still
renders the page (dashboards deployed before the last migration).
No fetch changes on the server side.1 parent 676aa0a commit 58bdb31
2 files changed
Lines changed: 109 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
275 | 304 | | |
276 | 305 | | |
277 | 306 | | |
| |||
285 | 314 | | |
286 | 315 | | |
287 | 316 | | |
| 317 | + | |
| 318 | + | |
288 | 319 | | |
289 | 320 | | |
290 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
126 | 204 | | |
127 | 205 | | |
128 | 206 | | |
| |||
0 commit comments