lnwallet/reservation: remove RegisterMinHTLC

We remove this method, as our minHtlc value is set using the
CommitConstraints method.
This commit is contained in:
Johan T. Halseth 2018-04-05 19:52:03 +02:00
parent ca0b4cb8c5
commit 3d55767838
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

View File

@ -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