Skip to content

Commit c4cbdaa

Browse files
committed
f Extend reserve docs
1 parent 4ac78e9 commit c4cbdaa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/config.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ pub struct AnchorChannelsConfig {
190190
/// in order to have the required Anchor output spending and HTLC transactions confirmed when
191191
/// the channel is closed.
192192
///
193+
/// If the channel peer is not marked as trusted via
194+
/// [`AnchorChannelsConfig::trusted_peers_no_reserve`], we will always try to spend the Anchor
195+
/// outputs with *any* on-chain funds available, i.e., the total reserve value as well as any
196+
/// spendable funds available in the on-chain wallet. Therefore, this per-channel multiplier is
197+
/// really a emergencey reserve that we maintain at all time to reduce reduce the risk of
198+
/// insufficient funds at time of a channel closure. To this end, we will refuse to open
199+
/// outbound or accept inbound channels if we don't have sufficient on-chain funds availble to
200+
/// cover the additional reserve requirement.
201+
///
193202
/// **Note:** Depending on the fee market at the time of closure, this reserve amount might or
194203
/// might not suffice to successfully spend the Anchor output and have the HTLC transactions
195204
/// confirmed on-chain, i.e., you may want to adjust this value accordingly.

0 commit comments

Comments
 (0)