Skip to content

fix(lightning): use actual probe result#522

Draft
pwltr wants to merge 1 commit intomasterfrom
fix/probing
Draft

fix(lightning): use actual probe result#522
pwltr wants to merge 1 commit intomasterfrom
fix/probing

Conversation

@pwltr
Copy link
Copy Markdown
Contributor

@pwltr pwltr commented Apr 8, 2026

Description

Before this change, the probing flow always returned success for any sent probe. Now it uses the paymentIds from the returned probe handles, waits for matching .probeSuccessful / .probeFailed events, and updates the UI to use the actual result.

Details

  • LightningService.sendProbe returns dispatched probe paymentIds (ProbeDispatch).
  • WalletViewModel.waitForProbeOutcome matches on those IDs, uses a small in-memory cache so events aren’t missed between dispatch and registering the listener, clears cache on node stop / wipe.
  • Multi-path probes: resolve on first success, or after all tracked probes fail.

Needs synonymdev/ldk-node#77

Screenshot / Video

Simulator.Screen.Recording.-.iPhone.17.-.2026-04-08.at.18.48.21.mov

@pwltr pwltr marked this pull request as draft April 8, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant