rust-lightning icon indicating copy to clipboard operation
rust-lightning copied to clipboard

Inbound capacity does not account for remote's commitment fee

Open gcomte opened this issue 1 year ago • 1 comments

When receiving a payment through (a) channel(s) that was opened by the remote node, it is rightfully being checked that the sender doesn't send so much funds that the channel closing fee wouldn't be covered anymore (2 * remote_commit_tx_fee).

The remote party's commitment fee does however not seem to be considered when calculating a channels inbound capacity.

This is misleading and may lead a user to create invoices with bigger amounts than the user can actually receive.

gcomte avatar Jun 05 '23 07:06 gcomte