rust-lightning
rust-lightning copied to clipboard
Inbound capacity does not account for remote's commitment fee
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.