Conversation
|
Pushed d5dd07d: renamed the changelog fragment to this PR's number, as |
The scene-phase active handler now restarts the node when it is in errorStarting with a wallet and a connection, sharing the restart used when the network is restored.
d5dd07d to
da351df
Compare
|
Rebased on master (0 behind) and pushed da351df: the foreground retry now also stays off while the Recovery screen is shown, with a unit test that fails without the guard. Description updated with the Recovery guard and the simulator check. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
|
Pushed 47e0db6: the Recovery check also runs inside the restart helper when the restart executes (answers the review thread about the quick-action ordering). Because the network-restored restart shares the helper, it now also skips in recovery mode, which is the case #603 describes. Description updated; the guard test and the other NodeStartRetryTests pass on the new head. |
|
Two independent reviews. needs changing before merge
worth doing, does not block
|
… stop a node started under recovery
@coreyphillips Agreed, and pushed dee4b5f. After the start completes,
@coreyphillips Gated on a prior background phase: the app records |
pwltr
left a comment
There was a problem hiding this comment.
Approved. Verified that after startup failed with Electrum paused, unpausing it and backgrounding/reopening Bitkit started the node without a relaunch. No blocking findings. Automatic retry with backoff remains tracked in #777.
Refs:
This PR retries a failed node start when the app returns to the foreground. It is a partial fix for #777 (retry on foreground only); backoff and an actionable connection state stay open there, so the issue stays open.
Description
Out of Scope
Bitkit/AppScene.swift: retry with backoff after repeated failures, the larger ask in bug: lightning node start is not retried after an electrum timeout, pay shows "Connection issues" #777 and in bitkit-android#1252; this PR retries once per foreground.Bitkit/AppScene.swift: the network-restored handler keeps retrying from the stopped, initializing and error-starting states; only the foreground retry is limited to error-starting.Bitkit/AppScene.swift: [Bug]: Recovery mode can still start the node after a network reconnect #603 stays open for its remaining ask, the foreground sync and peer reconnect while Recovery is shown.Design
N/A — no UI changes.
Preview
N/A — no user-visible changes beyond the recovery after a failed start; no new screens.
QA Notes
Journeys
N/A — not drivable; see Manual Tests.
Manual Tests
regression:node running → background and foreground the app → no second start is logged — a degraded Electrum during node start not in CapabilitiesAutomated Checks
NodeStartRetryTests.swift— retries only from the error-starting state, with a wallet and a connection, only after a return from the background, never while the Recovery screen is shown, and stops a node that started while Recovery opened