commit
1a4ba97562
@ -288,8 +288,8 @@ func (r *ChannelReservation) CommitConstraints(c *channeldb.ChannelConstraints)
|
|||||||
return ErrCsvDelayTooLarge(c.CsvDelay, maxDelay)
|
return ErrCsvDelayTooLarge(c.CsvDelay, maxDelay)
|
||||||
}
|
}
|
||||||
|
|
||||||
// The dust limit should always be greater or equal to the channel
|
// The channel reserve should always be greater or equal to the dust
|
||||||
// reserve. The reservation request should be denied if otherwise.
|
// limit. The reservation request should be denied if otherwise.
|
||||||
if c.DustLimit > c.ChanReserve {
|
if c.DustLimit > c.ChanReserve {
|
||||||
return ErrChanReserveTooSmall(c.ChanReserve, c.DustLimit)
|
return ErrChanReserveTooSmall(c.ChanReserve, c.DustLimit)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user