Skip to content

Renepay handle non mpp invoices #8155

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

Draft
wants to merge 23 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
974600b
renepay: use getroutes
Lagrang3 Feb 4, 2025
9ac2022
renepay: hints using askrene
Lagrang3 Feb 5, 2025
9924a70
renepay: add a global payment layer
Lagrang3 Feb 10, 2025
91942b4
renepay: use askrene API for payment failures
Lagrang3 Feb 10, 2025
9cd868d
renepay: use askrene-age to relax knowledge
Lagrang3 Feb 19, 2025
b9c824d
renepay: remove unnecessary rpc call
Lagrang3 Feb 19, 2025
8252f5b
renepay: filter channels using askrene API
Lagrang3 Feb 19, 2025
e7ad61c
renepay: timer to remove payment layer after 1h
Lagrang3 Feb 19, 2025
1a3bc06
renepay: remove MCF
Lagrang3 Feb 20, 2025
b7d46c8
renepay: add rpc batching utilities
Lagrang3 Feb 21, 2025
2507a50
renepay: use plugin_get_data API
Lagrang3 Feb 21, 2025
2fddfba
renepay: use batches to send payment routes
Lagrang3 Feb 21, 2025
a797e00
renepay: reserve liquidity for routes
Lagrang3 Feb 22, 2025
98e8fa0
renepay: unreserve completed routes
Lagrang3 Feb 22, 2025
91abf5f
renepay: refactor routefail functions
Lagrang3 Feb 25, 2025
45342a2
renepay: use askrene-inform-channel
Lagrang3 Feb 26, 2025
72cc777
renepay: split send routes into two steps
Lagrang3 Feb 26, 2025
7f7d48e
renepay: define a new struct rpcaction
Lagrang3 Feb 27, 2025
4c815d2
renepay: use rpcActions to unreserve routes
Lagrang3 Feb 27, 2025
4eaa21d
renepay: fine tuning test_renepay
Lagrang3 Feb 28, 2025
0b0c122
renepay: use the same global layer as xpay
Lagrang3 Mar 5, 2025
2facae2
Fix CI tests ...
Lagrang3 Mar 5, 2025
4a88991
renepay: handle non-MPP invoices
Lagrang3 Mar 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contrib/msggen/msggen/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30896,7 +30896,7 @@
"destination": "nodeid020202020202020202020202020202020202020202020202020202020202",
"created_at": 1738000000,
"groupid": 1,
"parts": 2,
"parts": 1,
"status": "complete",
"payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101",
"amount_sent_msat": 400000
Expand All @@ -30917,7 +30917,7 @@
"destination": "nodeid030303030303030303030303030303030303030303030303030303030303",
"created_at": 1738000000,
"groupid": 1,
"parts": 2,
"parts": 1,
"status": "complete",
"payment_preimage": "paymentpreimager020202020202020202020202020202020202020202020202",
"amount_sent_msat": 4000
Expand Down Expand Up @@ -31081,7 +31081,7 @@
"destination": "nodeid020202020202020202020202020202020202020202020202020202020202",
"created_at": 1738000000,
"groupid": 1,
"parts": 2,
"parts": 1,
"status": "complete",
"payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101",
"amount_sent_msat": 400000
Expand Down
4 changes: 2 additions & 2 deletions doc/schemas/lightning-renepay.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
"destination": "nodeid020202020202020202020202020202020202020202020202020202020202",
"created_at": 1738000000,
"groupid": 1,
"parts": 2,
"parts": 1,
"status": "complete",
"payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101",
"amount_sent_msat": 400000
Expand All @@ -252,7 +252,7 @@
"destination": "nodeid030303030303030303030303030303030303030303030303030303030303",
"created_at": 1738000000,
"groupid": 1,
"parts": 2,
"parts": 1,
"status": "complete",
"payment_preimage": "paymentpreimager020202020202020202020202020202020202020202020202",
"amount_sent_msat": 4000
Expand Down
2 changes: 1 addition & 1 deletion doc/schemas/lightning-renepaystatus.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
"destination": "nodeid020202020202020202020202020202020202020202020202020202020202",
"created_at": 1738000000,
"groupid": 1,
"parts": 2,
"parts": 1,
"status": "complete",
"payment_preimage": "paymentpreimager010101010101010101010101010101010101010101010101",
"amount_sent_msat": 400000
Expand Down
20 changes: 4 additions & 16 deletions plugins/renepay/Makefile
Original file line number Diff line number Diff line change
@@ -1,39 +1,27 @@
PLUGIN_RENEPAY_SRC := \
plugins/renepay/main.c \
plugins/renepay/flow.c \
plugins/renepay/mcf.c \
plugins/renepay/dijkstra.c \
plugins/renepay/disabledmap.c \
plugins/renepay/renepay.c \
plugins/renepay/payment.c \
plugins/renepay/chan_extra.c \
plugins/renepay/route.c \
plugins/renepay/routebuilder.c \
plugins/renepay/routetracker.c \
plugins/renepay/routefail.c \
plugins/renepay/sendpay.c \
plugins/renepay/uncertainty.c \
plugins/renepay/mods.c \
plugins/renepay/errorcodes.c \
plugins/renepay/utils.c \
plugins/renepay/json.c

PLUGIN_RENEPAY_HDRS := \
plugins/renepay/payplugin.h \
plugins/renepay/flow.h \
plugins/renepay/mcf.h \
plugins/renepay/dijkstra.h \
plugins/renepay/disabledmap.h \
plugins/renepay/renepay.h \
plugins/renepay/payment.h \
plugins/renepay/payment_info.h \
plugins/renepay/chan_extra.h \
plugins/renepay/renepayconfig.h \
plugins/renepay/route.h \
plugins/renepay/routebuilder.h \
plugins/renepay/routetracker.h \
plugins/renepay/routefail.h \
plugins/renepay/sendpay.h \
plugins/renepay/uncertainty.h \
plugins/renepay/mods.h \
plugins/renepay/errorcodes.h \
plugins/renepay/utils.h \
plugins/renepay/json.c

PLUGIN_RENEPAY_OBJS := $(PLUGIN_RENEPAY_SRC:.c=.o)
Expand Down
Loading
Loading