Johan TorĂĄs Halseth [ARCHIVE] on Nostr: đź“… Original date posted:2018-01-12 đź“ť Original message: Hi all, I am wondering ...
đź“… Original date posted:2018-01-12
đź“ť Original message:
Hi all,
I am wondering how Eclair and c-lightning is handling the following case, as I wasn’t able to derive exactly how to handle it from the BOLTs. If it is described somewhere, please point me to it, if not, let’s agree on a strategy, and get it in :)
Let's say Alice is the funder of the channel (meaning she is paying all fees) between Alice and Bob. She wants to add an HTLC, and has just enough balance available for the HTLC + the extra fee for adding it to the commitment transaction. At the same time Bob wants to add an HTLC, and sees that Alice has enough balance to be able to pay the fee for receiving this HTLC (add it to her commitment tx).
They both send the AddHTLC at the same time, thinking Alice has enough balance available, but she doesn't have enough to cover her own HTLC+fee, in addition to the fee for adding Bob's. Adding both the HTLCs to her commitment transaction will either 1) violate the channel reserve requirement, or 2) deplete her channel completely if the channel reserve is set to 0.
What is the expected way of handling this case, from both Alice and Bob’s point of view?
Cheers, Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20180112/8844551f/attachment.html>
Published at
2023-06-09 12:48:31Event JSON
{
"id": "0c327ff9404d1db0e65559a9d761a9607b4fe650aae12a3931e1f193a46cf9c7",
"pubkey": "0866a9dfe968ace2a1cf22ff20e534684828184e3a538212dddae2abbb41465f",
"created_at": 1686314911,
"kind": 1,
"tags": [
[
"e",
"344f05c5496273bfa44ccfa6bc653dfc6b5c5ec1dbf8885ef9c1f18fa5d1ad44",
"",
"reply"
],
[
"p",
"9456f7acb763eaab2e02bd8e60cf17df74f352c2ae579dce1f1dd25c95dd611c"
]
],
"content": "📅 Original date posted:2018-01-12\n📝 Original message:\nHi all,\nI am wondering how Eclair and c-lightning is handling the following case, as I wasn’t able to derive exactly how to handle it from the BOLTs. If it is described somewhere, please point me to it, if not, let’s agree on a strategy, and get it in :)\nLet's say Alice is the funder of the channel (meaning she is paying all fees) between Alice and Bob. She wants to add an HTLC, and has just enough balance available for the HTLC + the extra fee for adding it to the commitment transaction. At the same time Bob wants to add an HTLC, and sees that Alice has enough balance to be able to pay the fee for receiving this HTLC (add it to her commitment tx).\nThey both send the AddHTLC at the same time, thinking Alice has enough balance available, but she doesn't have enough to cover her own HTLC+fee, in addition to the fee for adding Bob's. Adding both the HTLCs to her commitment transaction will either 1) violate the channel reserve requirement, or 2) deplete her channel completely if the channel reserve is set to 0.\nWhat is the expected way of handling this case, from both Alice and Bob’s point of view?\nCheers, Johan\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20180112/8844551f/attachment.html\u003e",
"sig": "867b2ca9a5c23de09d42262950be90fd874d0d6354d27774b81ba41dc954b69be5599c2b18d7d3e51e4c406d633a83c146675f60fed5f0b73a65af7811f9c67e"
}