lnwallet/reservation: remove RegisterMinHTLC
We remove this method, as our minHtlc value is set using the CommitConstraints method.
This commit is contained in:
parent
ca0b4cb8c5
commit
3d55767838
@ -276,16 +276,6 @@ func (r *ChannelReservation) SetNumConfsRequired(numConfs uint16) {
|
|||||||
r.partialState.NumConfsRequired = numConfs
|
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
|
// CommitConstraints takes the constraints that the remote party specifies for
|
||||||
// the type of commitments that we can generate for them. These constraints
|
// the type of commitments that we can generate for them. These constraints
|
||||||
// include several parameters that serve as flow control restricting the amount
|
// include several parameters that serve as flow control restricting the amount
|
||||||
|
Loading…
Reference in New Issue
Block a user