mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-18 21:14:40 +01:00
lnwallet/reservation: remove RegisterMinHTLC
We remove this method, as our minHtlc value is set using the CommitConstraints method.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user