Skip to content

Commit fc98e32

Browse files
committed
f Small doc adjustments
1 parent 0eab7c1 commit fc98e32

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/config.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,10 @@ impl Default for Config {
156156
/// design of pre-anchor channels proved inadequate in the unpredictable, often turbulent, fee
157157
/// markets we experience today.
158158
///
159-
/// In contrast, Anchor channels allow to determine an adequate fee
160-
/// rate *at the time of channel closure*, making them much more robust in the face of fee spikes.
161-
/// In turn, they require to maintain a reserve of on-chain funds to have the channel closure
162-
/// transactions confirmed on-chain, at least if the channel counterparty can't be trusted to do
163-
/// this for us.
159+
/// In contrast, Anchor channels allow to determine an adequate fee rate *at the time of channel
160+
/// closure*, making them much more robust in the face of fee spikes. In turn, they require to
161+
/// maintain a reserve of on-chain funds to have the channel closure transactions confirmed
162+
/// on-chain, at least if the channel counterparty can't be trusted to do this for us.
164163
///
165164
/// See [BOLT 3] for more technical details on Anchor channels.
166165
///
@@ -188,9 +187,11 @@ pub struct AnchorChannelsConfig {
188187
/// funds stuck *or* even allow the counterparty to steal any in-flight funds after the
189188
/// corresponding HTLCs time out.
190189
pub trusted_peers_no_reserve: Vec<PublicKey>,
191-
/// The amount of satoshis per anchors-negotiated channel with an untrusted peer we keep as an
192-
/// emergency reserve in our on-chain wallet in order to have the required Anchor output
193-
/// spending and HTLC transactions confirmed when the channel is closed.
190+
/// The amount of satoshis per anchors-negotiated channel with an untrusted peer that we keep
191+
/// as an emergency reserve in our on-chain wallet.
192+
///
193+
/// This allows for having the required Anchor output spending and HTLC transactions confirmed
194+
/// when the channel is closed.
194195
///
195196
/// If the channel peer is not marked as trusted via
196197
/// [`AnchorChannelsConfig::trusted_peers_no_reserve`], we will always try to spend the Anchor

0 commit comments

Comments
 (0)