mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 02:02:10 +02:00
lnd: add max fee rate check to closechannel rpc
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user