Skip to content

Conversation

@Jasonvdb
Copy link
Contributor

Found an occasional issue with the route finding using the local graph and a restore seems to fix it so this just resets graph and scorer automatically while attempting a payment.

  • Attempts payment flow normally
  • Specifically catches RouteNotFound error returned by LDK (any other error handled as before)
  • For route not found error:
  • Delete cached scorer
  • Delete cached graph
  • Download scorer and init
  • Download graph and init
  • Restart channel manager (to load new graph and scorer)
  • Add all peers again
  • Retry payment with same params

Handling this reset and retry takes an additional 10 seconds on iOS and about 30 seconds on Android (could be my device).

@ovitrif ovitrif merged commit 07bd71e into master Apr 18, 2025
1 of 6 checks passed
@ovitrif ovitrif deleted the graph-reset branch April 18, 2025 14:15
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.

4 participants