Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renepay uses getroutes #7633

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

Lagrang3
Copy link
Collaborator

@Lagrang3 Lagrang3 commented Sep 2, 2024

Renepay uses getroutes

Description

In renepay we call getroutes RPC instead of computing routes internally.

Related Issues

Changes Made

  • Refactor: eventually routes computation will be done with plugin askrene and renepay will use its API to obtain routes.

Checklist

Ensure the following tasks are completed before submitting the PR:

  • Changelog has been added in relevant commit/s.
  • Tests have been added or updated to cover the changes.
  • Documentation has been updated as needed.
  • Any relevant comments or TODOs have been addressed or removed.

Additional Notes

Changelog-EXPERIMENTAL: Renepay uses getroutes rpc to obtain payment routes.

Signed-off-by: Lagrang3 <[email protected]>
Remove getmychannels payment modifier, the task to evaluate local
channels is performed by askrene.

Signed-off-by: Lagrang3 <[email protected]>
For every route hint (bolt11) create local channel with
askrene-create-channel RPC.

Signed-off-by: Lagrang3 <[email protected]>
Remove unused update of the uncertainty network.
The uncertainty network is now handled by askrene.

Signed-off-by: Lagrang3 <[email protected]>
Uses askrene-inform-channel to disable channels that meet renepay filter
criteria.

Signed-off-by: Lagrang3 <[email protected]>
Prefer the provided API to work with amount_msat and fp16.

Signed-off-by: Lagrang3 <[email protected]>
Preceding the introduction of askrene we needed to make a gossmap
refresh at every payment cycle to ensure to pick up the udpates in the
gossip store due to "addgossip" RPCs are called from the messages of
failed onions. With askrene this is no longer necessary.

Signed-off-by: Lagrang3 <[email protected]>
Resolve multiple RPC calls before moving to the next payment state.

Signed-off-by: Lagrang3 <[email protected]>
We do not move to the next payment step until all sendpay RPCs are
finished. We flag routes that fail the sendpay call.

Signed-off-by: Lagrang3 <[email protected]>
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