What is Nostr?
Jesse / Jesse de Wit
npub18hw…v8du
2024-03-21 17:42:37

Jesse on Nostr: Tip about CLN: When CLN forwards a payment and it has multiple channels with the same ...

Tip about CLN:

When CLN forwards a payment and it has multiple channels with the same peer, it selects the channel with the highest available balance out of channels with the same fee policy as the one the sender specified.

Say you have 3 channels with the same peer.
- A has fee 10ppm and is depleted
- B has fee 10ppm and has 100sat sendable balance
- C has fee 5ppm and has 1 BTC sendable balance

Sender computes a route that contains channel A, sends a payment.

Your node will pick the channel with the highest balance out of channel A and B, because they have the same fee rate. In this case it picks B because it has the highest balance.

If the payment was more than 100sat, the forward will fail.

Author Public Key
npub18hwpk5qep3ptnmzatq22ptwr9mth7ccrku56rdntwpxjxlkfyr2qrav8du