lnd: add max fee rate check to closechannel rpc

This commit is contained in:
ziggie committed 2025-02-20 17:43:18 +01:00
1 parent 59443faa36
commit f458844412
7 files changed
+109 -12

No files matched your search

+3
View File
@@ -360,6 +360,9 @@ func (c *ChanCloser) initFeeBaseline() {
)
}
// TODO(ziggie): Make sure the ideal fee is not higher than the max fee.
// Either error out or cap the ideal fee at the max fee.
chancloserLog.Infof("Ideal fee for closure of ChannelPoint(%v) "+
"is: %v sat (max_fee=%v sat)", c.cfg.Channel.ChannelPoint(),
int64(c.idealFeeSat), int64(c.maxFee))