Skip to content

Commit d2ed6c1

Browse files
f Antoine feedback on spec deviation comment
1 parent 5771afb commit d2ed6c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,8 +1810,9 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
18101810
}
18111811

18121812
if !self.channel_outbound {
1813-
// `+1` for this HTLC, `2 *` and `+1` fee spike buffer we keep for the remote (this deviates from the spec
1814-
// but should help protect us from stuck channels).
1813+
// `+1` for this HTLC, `2 *` and `+1` fee spike buffer we keep for the remote. This deviates from the
1814+
// spec because in the spec, the fee spike buffer requirement doesn't exist on the receiver's side,
1815+
// only on the sender's.
18151816
// Note that when we eventually remove support for fee updates and switch to anchor output fees,
18161817
// we will drop the `2 *`, since we no longer be as sensitive to fee spikes. But, keep the extra +1
18171818
// as we should still be able to afford adding this HTLC plus one more future HTLC, regardless of

0 commit comments

Comments
 (0)