Commit 6b78d15
Dashboard: stop misreporting PSP registration (win.17)
The old PSP Pool status line was checking /keepalive with a fake
address=test&peerId=test body and reporting "server not accepting new
registrations" whenever it saw the "unsubscribe failed will time out
anyways" response. That response is returned on EVERY keepalive,
including successful ones that Linux nodes use to get paid, so the
dashboard was lying to users.
Replace the fake-keepalive check with an honest map.json lookup:
- If map.json returns and contains our psp0payout address → "this node
is listed" (server sees us as active)
- If map.json returns but our payout isn't in it → "this node not yet
listed" (newly subscribed or still propagating)
- If map.json unreachable → "Pool unreachable"
Also drop the misleading "unsubscribe failed" branch entirely.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5832aef commit 6b78d15
2 files changed
Lines changed: 21 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
497 | 502 | | |
498 | 503 | | |
499 | 504 | | |
| |||
504 | 509 | | |
505 | 510 | | |
506 | 511 | | |
507 | | - | |
508 | | - | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
509 | 516 | | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
520 | 521 | | |
521 | | - | |
522 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
523 | 528 | | |
524 | 529 | | |
525 | 530 | | |
| |||
0 commit comments