From 3d557678383f4a8cedbebda1f876fc0892ff32fc Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 5 Apr 2018 19:52:03 +0200 Subject: [PATCH] lnwallet/reservation: remove RegisterMinHTLC We remove this method, as our minHtlc value is set using the CommitConstraints method. --- lnwallet/reservation.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lnwallet/reservation.go b/lnwallet/reservation.go index 2865c74bf..554b691a5 100644 --- a/lnwallet/reservation.go +++ b/lnwallet/reservation.go @@ -276,16 +276,6 @@ func (r *ChannelReservation) SetNumConfsRequired(numConfs uint16) { r.partialState.NumConfsRequired = numConfs } -// RegisterMinHTLC registers our desired amount for the smallest acceptable -// HTLC we'll accept within this channel. Any HTLC's that are extended which -// are below this value will SHOULD be rejected. -func (r *ChannelReservation) RegisterMinHTLC(minHTLC lnwire.MilliSatoshi) { - r.Lock() - defer r.Unlock() - - r.ourContribution.MinHTLC = minHTLC -} - // CommitConstraints takes the constraints that the remote party specifies for // the type of commitments that we can generate for them. These constraints // include several parameters that serve as flow control restricting the amount