[c-lightning] Support Plugin for optimally splitting of payment amounts and invoices for AMP payments

René Pickhardt r.pickhardt at googlemail.com
Wed Jan 15 03:39:00 AEDT 2020

Hey everyone,

ZmnSCPxj suggested in this post
that I should adapt my research results to create a support plugin for
splitting AMP payments and AMP invoices in a way that maximally reduces the
node's imbalance.

Note the plugin only gives short channel id's with amounts. The pathfinding
algorithm would have to be adopted to actually forcefully utilize these
channels as first / last hops. Also if along some of these channels no
paths can be found (because our peers on that specific channel just don't
have the right liquidity) we need to iterate on this and exclude channels.
I did not put this in yet because to me it is not clear yet how exactly
lightningd and the plugin would interact in this iterative process.

Thus this can only be the first experimental pitch which optimistically
assumes that all our local channels can actually route the suggested

I have just created the PR to the lightningd/plugins repo at:
https://github.com/lightningd/plugins/pull/83 I am not sure if such a
support plugin might eventually ship directly with lithningd. Maybe a
future version should be in the plugins folder of the elements/lightning

Looking forwards for your thoughts / remarks

with kind regards Rene


Skype: rene.pickhardt

mobile: +49 (0)176 5762 3618
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/c-lightning/attachments/20200114/0154694f/attachment.htm>

More information about the c-lightning mailing list