You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If all our channels are too low to pay an invoice, but the sum of the spendable on those channels should be high enough, we should rebalance on the next pay attempt to consolidate our funds.
ensurepayable <channel> <amount_msat> <fee_budget_msat> -> success/fail - Ensure that the specific channel has a spendable amount greater or equal to amount_msat, spending at most fee_budget_msat to rebalance. This (and plugin: Implement the htlc_accepted hook #2267) can be used later by JIT-routing by @renepickhardt.
selectconnectedchannel [<min_capacity_msat>] [<node>] -> {'channel': <channel>}/fail - Select a well-connected local channel. If min_capacity_msat is specified, only select a channel whose capacity is at least the given capacity. If node is specified, prefer channels that are well-connected to this (possibly very remote) node. I think the "RouteBoost" code in invoice can work for the initial version of this; ignore node for now, but leave it as a future point for improvement later.
In the pay loop that creates the initial excludes, if all local channels get excluded, check if the total spendable is above the payment amount + fee budget. If so, selectconnectedchannel to the destination node and ensurepayable the returned channel, with a fraction of our own fee budget.
The text was updated successfully, but these errors were encountered:
If all our channels are too low to
pay
an invoice, but the sum of the spendable on those channels should be high enough, we should rebalance on the nextpay
attempt to consolidate our funds.We need these:
waitanyinvoice
.ensurepayable <channel> <amount_msat> <fee_budget_msat>
-> success/fail - Ensure that the specificchannel
has a spendable amount greater or equal toamount_msat
, spending at mostfee_budget_msat
to rebalance. This (and plugin: Implement thehtlc_accepted
hook #2267) can be used later by JIT-routing by @renepickhardt.selectconnectedchannel [<min_capacity_msat>] [<node>]
->{'channel': <channel>}
/fail - Select a well-connected local channel. Ifmin_capacity_msat
is specified, only select a channel whose capacity is at least the given capacity. Ifnode
is specified, prefer channels that are well-connected to this (possibly very remote) node. I think the "RouteBoost" code ininvoice
can work for the initial version of this; ignorenode
for now, but leave it as a future point for improvement later.pay
loop that creates the initialexcludes
, if all local channels get excluded, check if the total spendable is above the payment amount + fee budget. If so,selectconnectedchannel
to the destination node andensurepayable
the returned channel, with a fraction of our own fee budget.The text was updated successfully, but these errors were encountered: