Skip to content

Commit

Permalink
f Antoine feedback on spec deviation comment
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinewallace committed Jun 12, 2020
1 parent 5771afb commit d2ed6c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1810,8 +1810,9 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
}

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

0 comments on commit d2ed6c1

Please sign in to comment.