Commit 675c518
committed
fix(spv): clear stale SPV state and banner on RPC mode switch
When the backend switches from SPV to RPC without a full reset(),
stale spv_no_peers_since and spv_connected_peers values could persist,
causing the degraded timer to remain active incorrectly.
Additionally, the SPV degraded banner was only managed inside the
SPV mode branch, so switching away from SPV while the banner was
showing would leave it stuck on screen.
Fixes:
1. Clear SPV peer fields at the top of the RPC branch in
refresh_zmq_and_spv().
2. Clear the SPV degraded banner unconditionally when not in SPV mode.1 parent 0de64dc commit 675c518
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
462 | 470 | | |
463 | 471 | | |
464 | 472 | | |
| |||
0 commit comments