Benjamin Weintraub [ARCHIVE] on Nostr: 📅 Original date posted:2021-12-09 📝 Original message: Hi all, I have a question ...
📅 Original date posted:2021-12-09
📝 Original message:
Hi all,
I have a question about BOLT #2. What exactly does it mean to "fail the channel"? In the section for "update_add_htlc," the follwing text is written:
* receiving an amount_msat equal to 0, OR less than its own htlc_minimum_msat:
* SHOULD fail the channel.
* receiving an amount_msat that the sending node cannot afford at the current feerate_per_kw (while maintaining its channel reserve and any to_local_anchor and to_remote_anchor costs):
* SHOULD fail the channel.
* if a sending node adds more than receiver max_accepted_htlcs HTLCs to its local commitment transaction, OR adds more than receiver max_htlc_value_in_flight_msat worth of offered HTLCs to its local commitment transaction:
* SHOULD fail the channel.
* if sending node sets cltv_expiry to greater or equal to 500000000:
* SHOULD fail the channel.
Does it mean closing the channel (unilaterally or mutually)? Or ending the TCP connection? Something else?
Thanks,
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20211209/b7241bfc/attachment-0001.html>
Published at
2023-06-09 13:04:45Event JSON
{
"id": "f9e8428a4132f1429f2cb68994770cad11059928ddebccaeb6716e18772adec3",
"pubkey": "d4882e22a16e704c732cefa159b483395bb032c66c58d9eb33c4f4fba84216c0",
"created_at": 1686315885,
"kind": 1,
"tags": [
[
"e",
"04540f7ed4bac0064c5f88ac13a8dde9bab99dca621f665592390a345c3257db",
"",
"reply"
],
[
"p",
"9456f7acb763eaab2e02bd8e60cf17df74f352c2ae579dce1f1dd25c95dd611c"
]
],
"content": "📅 Original date posted:2021-12-09\n📝 Original message:\nHi all,\n\nI have a question about BOLT #2. What exactly does it mean to \"fail the channel\"? In the section for \"update_add_htlc,\" the follwing text is written:\n\n * receiving an amount_msat equal to 0, OR less than its own htlc_minimum_msat:\n * SHOULD fail the channel.\n * receiving an amount_msat that the sending node cannot afford at the current feerate_per_kw (while maintaining its channel reserve and any to_local_anchor and to_remote_anchor costs):\n * SHOULD fail the channel.\n * if a sending node adds more than receiver max_accepted_htlcs HTLCs to its local commitment transaction, OR adds more than receiver max_htlc_value_in_flight_msat worth of offered HTLCs to its local commitment transaction:\n * SHOULD fail the channel.\n * if sending node sets cltv_expiry to greater or equal to 500000000:\n * SHOULD fail the channel.\n\nDoes it mean closing the channel (unilaterally or mutually)? Or ending the TCP connection? Something else?\n\nThanks,\nBen\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20211209/b7241bfc/attachment-0001.html\u003e",
"sig": "210249aa5584fc088cce280fabb819b78626a152155e8841bfecd190ac1997d005266129a15c8a76b1203d1fe25a25029100553e18a26f107c53692b0f0f967f"
}