Posted by renepickhardt
Apr 29, 2025/11:44 UTC
The discussion revolves around the strategic use of htlc_maximum_msat
in the management of liquidity and control of payment flows within the Lightning Network. Node operators have adopted various strategies for setting the htlc_maximum_msat
value to signal different operational states and intentions regarding their channel's liquidity. One common approach is for operators to set this value as a marker of the remaining liquidity in their channel, adjusting it to reflect current capacity without necessitating frequent updates after each successful routing event.
A more sophisticated method involves utilizing a Markov process to dynamically adjust the htlc_maximum_msat
between peers sharing a channel. This strategy aims to achieve a balanced expected flow through the channel based on demand, representing a departure from merely selecting a fraction of the available liquidity as the maximum htlc value. In contrast, the Eclair implementation offers a nuanced approach by setting htlc_maximum_msat
to zero when channel funds are nearly depleted. It employs varying thresholds related to the channel's available liquidity, essentially setting the htlc_maximum_msat
based on what the node estimates it can forward. This information can be found detailed in Eclair's documentation and release notes, as seen in Eclair's release notes and balance estimate logic.
The effectiveness of using htlc_maximum_msat
as a control valve, as initially suggested, has been acknowledged, although there is an interest in further quantifying its impact. This method's advantage lies in its simplicity and compatibility with the current protocol, requiring no changes but rather an update in implementation. However, it does lead to increased channel_update
messages, which is a trade-off for the flexibility and responsiveness it provides. The suggestion to reach a protocol-wide agreement on the signaling intent of htlc_maximum_msat
values points towards a potential enhancement of this mechanism, making it more robust and universally understood across the network.
TLDR
We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.
We'd love to hear your feedback on this project?
Give Feedback