mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-18 10:06:51 +01:00
lnwallet: use new maxFeeRatio for sanityCheckFee func
This commit is contained in:
@@ -1921,7 +1921,7 @@ func (w *WalletKit) fundPsbtCoinSelect(account string, changeIndex int32,
|
||||
|
||||
changeAmt, needMore, err := chanfunding.CalculateChangeAmount(
|
||||
inputSum, outputSum, packetFeeNoChange,
|
||||
packetFeeWithChange, changeDustLimit, changeType,
|
||||
packetFeeWithChange, changeDustLimit, changeType, 0,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error calculating change "+
|
||||
@@ -1978,7 +1978,7 @@ func (w *WalletKit) fundPsbtCoinSelect(account string, changeIndex int32,
|
||||
|
||||
selectedCoins, changeAmount, err := chanfunding.CoinSelect(
|
||||
feeRate, fundingAmount, changeDustLimit, coins,
|
||||
strategy, estimator, changeType,
|
||||
strategy, estimator, changeType, 0,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error selecting coins: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user