lnd.xprv/lnrpc/invoicesrpc
Olaoluwa Osuntokun f6d6d6609f
lnrpc/invoicesrpc: extend hop hint selection to account for MPP
In this commit, we update the hop hint selection to account for the fact
that with MPP, a single payment may consume multiple channels. As is, if
a user only has two 0.5 BTC channels, and tries to make a 1 BTC channel,
then the current logic won't include any hop hints.

To solve this, we first add all the channels which in isolation can
carry the payment in question. We then do another pass that accumulates
channels until either we reach our hop-hint limit, or the total
bandwidth that we've accumulate is greater than 2x the payment amount.
2020-08-13 14:47:25 -07:00
..
addinvoice.go lnrpc/invoicesrpc: extend hop hint selection to account for MPP 2020-08-13 14:47:25 -07:00
config_active.go rpc: allow wumbo invoices 2020-04-09 19:02:08 -07:00
config_default.go invoicesrpc: create sub server 2019-02-01 09:42:35 +01:00
driver.go invoicesrpc: create sub server 2019-02-01 09:42:35 +01:00
invoices_server.go rpcserver+lnrpc: register REST subservers with root server 2020-06-04 08:50:44 +02:00
invoices.pb.go lnrpc: extract or add REST annotations to yaml 2020-06-04 08:50:00 +02:00
invoices.pb.gw.go lnrpc: extract or add REST annotations to yaml 2020-06-04 08:50:00 +02:00
invoices.proto lnrpc: extract or add REST annotations to yaml 2020-06-04 08:50:00 +02:00
invoices.swagger.json lnrpc: extract or add REST annotations to yaml 2020-06-04 08:50:00 +02:00
log.go invoicesrpc: create sub server 2019-02-01 09:42:35 +01:00
utils.go multi: add explicit hodl invoice flag to invoice 2020-06-02 07:34:23 +02:00